From: Inki Dae Date: Tue, 9 Nov 2021 11:27:33 +0000 (+0900) Subject: tools: fix build error on aarch64 X-Git-Tag: submit/tizen/20220105.080154~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f635505871a4ab1fd0371337db40eaf5faef2e3;p=platform%2Fcore%2Fmultimedia%2Finference-engine-interface.git tools: fix build error on aarch64 [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 --- diff --git a/packaging/inference-engine-interface.spec b/packaging/inference-engine-interface.spec index 1f46e10..e65f107 100644 --- a/packaging/inference-engine-interface.spec +++ b/packaging/inference-engine-interface.spec @@ -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 diff --git a/tools/src/inference_engine_cltuner.cpp b/tools/src/inference_engine_cltuner.cpp index b18108e..fb198f7 100644 --- a/tools/src/inference_engine_cltuner.cpp +++ b/tools/src/inference_engine_cltuner.cpp @@ -214,7 +214,7 @@ void _FillOutputResult(InferenceEngineCommon *engine, std::vector 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 +}