You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eduard Zingerman says:
====================
veristat: @files-list.txt notation for object files list
A few small veristat improvements:
- It is possible to hit command line parameters number limit,
e.g. when running veristat for all object files generated for
test_progs. This patch-set adds an option to read objects files list
from a file.
- Correct usage of strerror() function.
- Avoid printing log lines to CSV output.
Changelog:
- v1 -> v2:
- replace strerror(errno) with strerror(-err) in patch #2 (Andrii)
v1: https://lore.kernel.org/bpf/[email protected]/T/
====================
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Andrii Nakryiko <[email protected]>
printf("Using guessed program type '%s' for %s/%s...\n",
1237
+
fprintf(stderr, "Using guessed program type '%s' for %s/%s...\n",
1194
1238
libbpf_bpf_prog_type_str(prog_type),
1195
1239
filename, prog_name);
1196
1240
}
1197
1241
} else {
1198
1242
if (!env.quiet) {
1199
-
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",
1200
1244
ctx_name, filename, prog_name);
1201
1245
}
1202
1246
}
@@ -1378,7 +1422,7 @@ static int append_var_preset_file(const char *filename)
1378
1422
f=fopen(filename, "rt");
1379
1423
if (!f) {
1380
1424
err=-errno;
1381
-
fprintf(stderr, "Failed to open presets in '%s': %s\n", filename, strerror(err));
1425
+
fprintf(stderr, "Failed to open presets in '%s': %s\n", filename, strerror(-err));
0 commit comments