]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: veristat: fix printing order in output_stats()
authorPuranjay Mohan <puranjay@kernel.org>
Wed, 31 Dec 2025 22:10:50 +0000 (14:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 1 Jan 2026 00:11:49 +0000 (16:11 -0800)
commitc286e7e9d1f1f3d90ad11c37e896f582b02d19c4
tree98c033a59daf6fab013cda6ed4f3419cec3b0511
parent17c736a7b58a18e3683df2583b60f0edeaf65070
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>
tools/testing/selftests/bpf/veristat.c