[PATCH] perf bench: Fix the wrong format specifier

liujing posted 1 patch 2 days, 15 hours ago
[PATCH] perf bench: Fix the wrong format specifier
Posted by liujing 2 days, 15 hours ago
These three variables inner_iterations, iterations, set_bits,
and num_bits have the type of unsigned int, so the output should be in the format of %u.

Signed-off-by: liujing <liujing@cmss.chinamobile.com>

diff --git a/tools/perf/bench/find-bit-bench.c b/tools/perf/bench/find-bit-bench.c
index 7e25b0e413f6..06edfd463eb2 100644
--- a/tools/perf/bench/find-bit-bench.c
+++ b/tools/perf/bench/find-bit-bench.c
@@ -104,7 +104,7 @@ static int do_for_each_set_bit(unsigned int num_bits)
 			update_stats(&tb_time_stats, runtime_us);
 		}
 
-		printf("%d operations %d bits set of %d bits\n",
+		printf("%u operations %u bits set of %u bits\n",
 			inner_iterations, set_bits, num_bits);
 		time_average = avg_stats(&fb_time_stats);
 		time_stddev = stddev_stats(&fb_time_stats);
-- 
2.27.0