From: Jaehoon Chung Date: Thu, 2 Feb 2023 05:09:27 +0000 (+0900) Subject: sensorctl: test_bench: use the correct print format specifier X-Git-Tag: accepted/tizen/7.0/unified/20230215.154343^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd0acce26ecc80f6ee2a490e4360ef427a9058ff;p=platform%2Fcore%2Fsystem%2Fsensord.git sensorctl: test_bench: use the correct print format specifier Use correct print format specifer from %d to %zu. Change-Id: Id59b26a23ef469881f29ff6a9710eb00eb4b94fc Signed-off-by: Jaehoon Chung (cherry picked from commit 8b0f24392a942d7a4eb528069c1a4741bc72ba41) --- diff --git a/src/sensorctl/test_bench.cpp b/src/sensorctl/test_bench.cpp index 267fec97..ff291a4b 100644 --- a/src/sensorctl/test_bench.cpp +++ b/src/sensorctl/test_bench.cpp @@ -317,7 +317,7 @@ void test_bench::run(void) /* Time measurement for test group */ clock_t start = clock(); - _I("[----------] %d tests from %s\n", testcases.count(it->first), it->first.c_str()); + _I("[----------] %zu tests from %s\n", testcases.count(it->first), it->first.c_str()); for (auto testcase = range.first; testcase != range.second; ++testcase) { if (m_stop) break; if (!filter_name(testcase->second->name())) continue; @@ -325,7 +325,7 @@ void test_bench::run(void) testcase->second->run_testcase(); } - _I("[----------] %d tests from %s (%.4f sec)\n", + _I("[----------] %zu tests from %s (%.4f sec)\n", testcases.count(it->first), it->first.c_str(), (double)(clock() - start)/ CLOCKS_PER_SEC); }