tools: bpftool: add error message on pin failure
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 7 Aug 2019 00:19:23 +0000 (17:19 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Aug 2019 15:38:53 +0000 (17:38 +0200)
commit3c7be384fe6da0d7b1d6fc0ad6b4a33edb73aad5
treeff6a09b0cb3b5fbe8a05bd28c6f86fb505a79f7b
parentb3e78adcbf991a4e8b2ebb23c9889e968ec76c5f
tools: bpftool: add error message on pin failure

No error message is currently printed if the pin syscall
itself fails. It got lost in the loadall refactoring.

Fixes: 77380998d91d ("bpftool: add loadall command")
Reported-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/common.c