On Fri, Nov 8, 2019 at 1:33 PM Toke Høiland-Jørgensen <toke@xxxxxxxxxx> wrote: > > From: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > > 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. > > Acked-by: Song Liu <songliubraving@xxxxxx> > Signed-off-by: Toke Høiland-Jørgensen <toke@xxxxxxxxxx> > --- Acked-by: Andrii Nakryiko <andriin@xxxxxx> > tools/lib/bpf/netlink.c | 3 ++- > tools/lib/bpf/nlattr.c | 10 +++++----- > 2 files changed, 7 insertions(+), 6 deletions(-) > [...]