[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170820194814.13785-1-eric@regit.org>
Date: Sun, 20 Aug 2017 21:48:14 +0200
From: Eric Leblond <eric@...it.org>
To: netdev@...r.kernel.org
Cc: Eric Leblond <eric@...it.org>
Subject: [PATCH] tools lib bpf: improve warning
Signed-off-by: Eric Leblond <eric@...it.org>
---
tools/lib/bpf/libbpf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
index 1cc3ea0ffdc3..35f6dfcdc565 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);
--
2.14.1
Powered by blists - more mailing lists