Skip to content

Commit

Permalink
tools: bpftool: fix error message (prog -> object)
Browse files Browse the repository at this point in the history
Change an error message to work for any object being
pinned not just programs.

Fixes: 71bb428 ("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>
  • Loading branch information
Jakub Kicinski authored and Daniel Borkmann committed Aug 9, 2019
1 parent f1fc724 commit b3e78ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/bpf/bpftool/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit b3e78ad

Please sign in to comment.