Skip to content
/ linux Public

Commit 542bf32

Browse files
puranjaymohanSasha Levin
authored andcommitted
selftests/bpf: veristat: fix printing order in output_stats()
[ Upstream commit c286e7e ] 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: 518fee8 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 6e6abc7 commit 542bf32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/veristat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ static void output_stats(const struct verif_stats *s, enum resfmt fmt, bool last
13721372
if (last && fmt == RESFMT_TABLE) {
13731373
output_header_underlines();
13741374
printf("Done. Processed %d files, %d programs. Skipped %d files, %d programs.\n",
1375-
env.files_processed, env.files_skipped, env.progs_processed, env.progs_skipped);
1375+
env.files_processed, env.progs_processed, env.files_skipped, env.progs_skipped);
13761376
}
13771377
}
13781378

0 commit comments

Comments
 (0)