[PATCH] perf bench: Fix the wrong format specifier

From: liujing
Date: Thu Nov 21 2024 - 06:35:51 EST


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@xxxxxxxxxxxxxxxxxxxx>

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