selftests/bpf: veristat: fix printing order in output_stats()
Subsystems (3)
PATCH 1/1 selftests/bpf: veristat: fix printing order in output_stats()
The order of the variables in the printf() doesn't match the text and therefore verfistat 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.
--- tools/testing/selftests/bpf/veristat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/bpf/veristat.c +1 -1
@@ -2580,7 +2580,7 @@ static void output_stats(const struct verif_stats *s, enum resfmt fmt, bool lastif (last && fmt ==RESFMT_TABLE ) {output_header_underlines ();printf ("Done. Processed %d files, %d programs. Skipped %d files, %d programs.\n" , - env.files_processed, env.files_skipped, env.progs_processed, env.progs_skipped); + env.files_processed, env.progs_processed, env.files_skipped, env.progs_skipped); } }
base-commit: 1a8fa7faf4890d201aad4f5d4943f74d840cd0ba
Signature · 1 line
2.47.3
Quoted 5 lines · Puranjay Mohan
The order of the variables in the
printf()doesn't match the text and therefore verfistat prints something like this:Done. Processed 24 files, 0 programs. Skipped 62 files, 0 programs.
Quoted 8 lines
When it should print:
Done. Processed 24 files, 62 programs. Skipped 0 files, 0 programs.
Fix the order of variables in the
printf()call.Signed-off-by Puranjay Mohan <[email protected]>---
Quoted 3 lines · Puranjay Mohan
The order of the variables in the
printf()doesn't match the text and therefore verfistat prints something like this:
typo
Quoted 9 lines
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.Signed-off-by Puranjay Mohan <[email protected]>
Is there a fixes tag?
Pls cc Mykyta in respin. He takes care of veristat nowadays.
pw-bot: cr
Quoted 22 lines
--- tools/testing/selftests/bpf/veristat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/bpf/veristat.c +1
-1@@ -2580,7 +2580,7 @@ static void output_stats(const struct verif_stats *s, enum resfmt fmt, bool lastif (last && fmt ==RESFMT_TABLE ) {output_header_underlines ();printf ("Done. Processed %d files, %d programs. Skipped %d files, %d programs.\n" , - env.files_processed, env.files_skipped, env.progs_processed, env.progs_skipped); + env.files_processed, env.progs_processed, env.files_skipped, env.progs_skipped); } }base-commit:
1a8fa7faf4890d201aad4f5d4943f74d840cd0ba--
2.47.3