summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Leblond <eric@regit.org>2017-08-20 21:48:14 +0200
committerDavid S. Miller <davem@davemloft.net>2017-08-20 19:49:51 -0700
commit49bf4b36fdee4db3c8bc0507a8413a93a8c711cf (patch)
tree407ac979e80000a4b7d76140269d8ad4e32c8f7c
parent5a78449810b06c3bc5fcd002d52e1a64f9bb397e (diff)
tools lib bpf: improve warning
Signed-off-by: Eric Leblond <eric@regit.org> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--tools/lib/bpf/libbpf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 1a2c07eb7795..8c67a90dbd82 100644
--- a/tools/lib/bpf/libbpf.c
+++ b/tools/lib/bpf/libbpf.c
@@ -879,7 +879,8 @@ bpf_object__create_maps(struct bpf_object *obj)
size_t j;
int err = *pfd;
- pr_warning("failed to create map: %s\n",
+ pr_warning("failed to create map (name: '%s'): %s\n",
+ obj->maps[i].name,
strerror(errno));
for (j = 0; j < i; j++)
zclose(obj->maps[j].fd);