Skip to content

Commit b127528

Browse files
eddyz87anakryiko
authored andcommitted
veristat: Report program type guess results to sdterr
In order not to pollute CSV output, e.g.: $ ./veristat -o csv exceptions_ext.bpf.o > test.csv Using guessed program type 'sched_cls' for exceptions_ext.bpf.o/extension... Using guessed program type 'sched_cls' for exceptions_ext.bpf.o/throwing_extension... Signed-off-by: Eduard Zingerman <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Mykyta Yatsenko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 1649753 commit b127528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/bpf/veristat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,13 +1234,13 @@ static void fixup_obj(struct bpf_object *obj, struct bpf_program *prog, const ch
12341234
bpf_program__set_expected_attach_type(prog, attach_type);
12351235

12361236
if (!env.quiet) {
1237-
printf("Using guessed program type '%s' for %s/%s...\n",
1237+
fprintf(stderr, "Using guessed program type '%s' for %s/%s...\n",
12381238
libbpf_bpf_prog_type_str(prog_type),
12391239
filename, prog_name);
12401240
}
12411241
} else {
12421242
if (!env.quiet) {
1243-
printf("Failed to guess program type for freplace program with context type name '%s' for %s/%s. Consider using canonical type names to help veristat...\n",
1243+
fprintf(stderr, "Failed to guess program type for freplace program with context type name '%s' for %s/%s. Consider using canonical type names to help veristat...\n",
12441244
ctx_name, filename, prog_name);
12451245
}
12461246
}

0 commit comments

Comments
 (0)