tools: bpftool: fix error message (prog -> object)
authorJakub Kicinski <jakub.kicinski@netronome.com>
Wed, 7 Aug 2019 00:19:22 +0000 (17:19 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 9 Aug 2019 15:38:53 +0000 (17:38 +0200)
Change an error message to work for any object being
pinned not just programs.

Fixes: 71bb428fe2c1 ("tools: bpf: add bpftool")
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/bpf/bpftool/common.c

index 5215e0870bcbaf84e97db8c241260989ed74318f..c52a6ffb8949acc968a9c80b2730ee6de7cab78e 100644 (file)
@@ -237,7 +237,7 @@ int do_pin_any(int argc, char **argv, int (*get_fd_by_id)(__u32))
 
        fd = get_fd_by_id(id);
        if (fd < 0) {
-               p_err("can't get prog by id (%u): %s", id, strerror(errno));
+               p_err("can't open object by id (%u): %s", id, strerror(errno));
                return -1;
        }