Skip to content
Commit d2973ffd authored by Sahid Orentino Ferdjaoui's avatar Sahid Orentino Ferdjaoui Committed by Alexei Starovoitov
Browse files

bpftool: fix error message when function can't register struct_ops



It is expected that errno be passed to strerror(). This also cleans
this part of code from using libbpf_get_error().

Signed-off-by: default avatarSahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Acked-by: default avatarYonghong Song <yhs@fb.com>
Suggested-by: default avatarQuentin Monnet <quentin@isovalent.com>
Reviewed-by: default avatarQuentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/r/20221120112515.38165-4-sahid.ferdjaoui@industrialdiscipline.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 989f2851
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment