Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/bpf: veristat: fix printing order in output_stats()

The order of the variables in the printf() doesn't match the text and
therefore veristat prints something like this:

Done. Processed 24 files, 0 programs. Skipped 62 files, 0 programs.

When it should print:

Done. Processed 24 files, 62 programs. Skipped 0 files, 0 programs.

Fix the order of variables in the printf() call.

Fixes: 518fee8bfaf2 ("selftests/bpf: make veristat skip non-BPF and failing-to-open BPF objects")
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20251231221052.759396-1-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Puranjay Mohan and committed by
Alexei Starovoitov
c286e7e9 17c736a7

+1 -1
+1 -1
tools/testing/selftests/bpf/veristat.c
··· 2580 2580 if (last && fmt == RESFMT_TABLE) { 2581 2581 output_header_underlines(); 2582 2582 printf("Done. Processed %d files, %d programs. Skipped %d files, %d programs.\n", 2583 - env.files_processed, env.files_skipped, env.progs_processed, env.progs_skipped); 2583 + env.files_processed, env.progs_processed, env.files_skipped, env.progs_skipped); 2584 2584 } 2585 2585 } 2586 2586