aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@redhat.com>2019-11-09 21:37:30 +0100
committerAlexei Starovoitov <ast@kernel.org>2019-11-10 19:26:30 -0800
commitb6e99b010ecf829fd8453a7a77e389501bb81990 (patch)
treee4113e360fc202b4c7e663f28fa8e6c661c025e9 /tools/lib/bpf/libbpf.map
parentlibbpf: Propagate EPERM to caller on program load (diff)
downloadlinux-dev-b6e99b010ecf829fd8453a7a77e389501bb81990.tar.xz
linux-dev-b6e99b010ecf829fd8453a7a77e389501bb81990.zip
libbpf: Use pr_warn() when printing netlink errors
The netlink functions were using fprintf(stderr, ) directly to print out error messages, instead of going through the usual logging macros. This makes it impossible for the calling application to silence or redirect those error messages. Fix this by switching to pr_warn() in nlattr.c and netlink.c. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Acked-by: David S. Miller <davem@davemloft.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/157333185055.88376.15999360127117901443.stgit@toke.dk
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions