From: Eric Leblond Date: Sun, 20 Aug 2017 19:48:14 +0000 (+0200) Subject: tools lib bpf: improve warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49bf4b36fdee4db3c8bc0507a8413a93a8c711cf;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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);