tools lib bpf: improve warning
authorEric Leblond <eric@regit.org>
Sun, 20 Aug 2017 19:48:14 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Aug 2017 02:49:51 +0000 (19:49 -0700)
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>
tools/lib/bpf/libbpf.c

index 1a2c07e..8c67a90 100644 (file)
@@ -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);