diff options
| author | liujing <liujing@cmss.chinamobile.com> | 2026-09-15 15:11:22 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-17 12:27:34 -0300 |
| commit | 63c2df4cfb1a8d1eb34f19db78f51cc87c10f369 (patch) | |
| tree | 4eb425dcfdbb9bcdebeac2725b62688cba5184a2 | |
| parent | 3cbb16ccd7d8c7377058195b48c721e99ee158aa (diff) | |
| download | linux-next-63c2df4cfb1a8d1eb34f19db78f51cc87c10f369.tar.gz linux-next-63c2df4cfb1a8d1eb34f19db78f51cc87c10f369.zip | |
perf bench messaging: Fix the formatting issue when printing.
The unsigned int type should use the %u format specifier when
printing with printf or related functions.
Signed-off-by: liujing <liujing@cmss.chinamobile.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
| -rw-r--r-- | tools/perf/bench/sched-messaging.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/bench/sched-messaging.c b/tools/perf/bench/sched-messaging.c index 4fb6657fc826..c5c9a7a1d7db 100644 --- a/tools/perf/bench/sched-messaging.c +++ b/tools/perf/bench/sched-messaging.c @@ -338,9 +338,9 @@ int bench_sched_messaging(int argc, const char **argv) switch (bench_format) { case BENCH_FORMAT_DEFAULT: - printf("# %d sender and receiver %s per group\n", + printf("# %u sender and receiver %s per group\n", num_fds, thread_mode ? "threads" : "processes"); - printf("# %d groups == %d %s run\n\n", + printf("# %u groups == %u %s run\n\n", num_groups, num_groups * 2 * num_fds, thread_mode ? "threads" : "processes"); printf(" %14s: %lu.%03lu [sec]\n", "Total time", |
