tools: fix build error on aarch64 39/266239/3
authorInki Dae <inki.dae@samsung.com>
Tue, 9 Nov 2021 11:27:33 +0000 (20:27 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 10 Nov 2021 09:25:51 +0000 (18:25 +0900)
[Version] : 0.1.1-0
[Issue type] : bug fix

Fixed a build error, error: format '%d' expects argument of type 'int'
since commit-id fa6bf6018a088e31c1ee641db79b6493605d2e44.

Regarding size_t type, this patch makes it to use '%zu' instead of
'%d' as a format specifier.

Change-Id: Ib35476e899d1d1dce68ac02e32759bc2dc44ac91
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/inference-engine-interface.spec
tools/src/inference_engine_cltuner.cpp

index 1f46e10..e65f107 100644 (file)
@@ -1,6 +1,6 @@
 Name:        inference-engine-interface
 Summary:     Interface of inference engines
-Version:     0.1.0
+Version:     0.1.1
 Release:     0
 Group:       Multimedia/Framework
 License:     Apache-2.0
index b18108e..fb198f7 100644 (file)
@@ -214,7 +214,7 @@ void _FillOutputResult(InferenceEngineCommon *engine,
                std::vector<int> tmpDimInfo;
 
                for (auto& dim : tensor_info.shape) {
-                       LOGE("dim size %d", dim);
+                       LOGE("dim size %zu", dim);
                        tmpDimInfo.push_back(dim);
                }
 
@@ -408,7 +408,7 @@ static gboolean process(tensor_t& result_tensor, bool is_supported, bool is_acti
        }
 
        for (auto& input : inputs) {
-               LOGI("input.second.size :[%d]", input.second.size);
+               LOGI("input.second.size :[%zu]", input.second.size);
                CopyRandomMatrixToMemory(input.second, input.second.size);
        }
 
@@ -539,4 +539,4 @@ int main ()
        __interpret(mode,file_path);
 
        return 0;
-}
\ No newline at end of file
+}