From: Eric Leblond Date: Sun, 20 Aug 2017 19:48:14 +0000 (+0200) Subject: tools lib bpf: improve warning X-Git-Tag: microblaze-4.14-rc3~261^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=49bf4b36fdee4db3c8bc0507a8413a93a8c711cf;p=linux-2.6-microblaze.git tools lib bpf: improve warning Signed-off-by: Eric Leblond Acked-by: Daniel Borkmann Acked-by: Alexei Starovoitov Signed-off-by: David S. Miller --- 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);