Commit 1dc961de authored by Jakub Kicinski's avatar Jakub Kicinski Committed by Greg Kroah-Hartman

tools: bpftool: fix error message (prog -> object)

[ Upstream commit b3e78adc ]

Change an error message to work for any object being
pinned not just programs.

Fixes: 71bb428f ("tools: bpf: add bpftool")
Signed-off-by: default avatarJakub Kicinski <>
Reviewed-by: default avatarQuentin Monnet <>
Signed-off-by: default avatarDaniel Borkmann <>
Signed-off-by: default avatarSasha Levin <>
parent ea3c243c
......@@ -236,7 +236,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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment