sensorctl: test_bench: use the correct print format specifier 70/287670/1 accepted/tizen/unified/20230215.100707
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 2 Feb 2023 05:09:27 +0000 (14:09 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 2 Feb 2023 05:20:59 +0000 (14:20 +0900)
Use correct print format specifer from %d to %zu.

Change-Id: Id59b26a23ef469881f29ff6a9710eb00eb4b94fc
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
src/sensorctl/test_bench.cpp

index 267fec97a3c39aa866a366bacf2cc5d482d4dac5..ff291a4b6da90379af2b02d03e9ffbc9a3d60a32 100644 (file)
@@ -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);
        }