Commit 1d84487e authored by Quentin Monnet's avatar Quentin Monnet Committed by David S. Miller

tools: bpftool: use err() instead of info() if there are too many insns

Make error messages and return codes more consistent. Specifically,
replace the use of info() macro with err() when too many eBPF
instructions are received to be dumped, given that bpftool returns with
a non-null exit value in that case.
Signed-off-by: default avatarQuentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1739c26d
...@@ -416,7 +416,7 @@ static int do_dump(int argc, char **argv) ...@@ -416,7 +416,7 @@ static int do_dump(int argc, char **argv)
} }
if (*member_len > buf_size) { if (*member_len > buf_size) {
info("too many instructions returned\n"); err("too many instructions returned\n");
goto err_free; goto err_free;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment