summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/bpf/bpftool/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c
index 10b6c9d3e525..e6dcb3653a77 100644
--- a/tools/bpf/bpftool/map.c
+++ b/tools/bpf/bpftool/map.c
@@ -724,7 +724,7 @@ static int dump_map_elem(int fd, void *key, void *value,
724 } else { 724 } else {
725 const char *msg = NULL; 725 const char *msg = NULL;
726 726
727 if (errno == ENOENT) 727 if (lookup_errno == ENOENT)
728 msg = "<no entry>"; 728 msg = "<no entry>";
729 else if (lookup_errno == ENOSPC && 729 else if (lookup_errno == ENOSPC &&
730 map_info->type == BPF_MAP_TYPE_REUSEPORT_SOCKARRAY) 730 map_info->type == BPF_MAP_TYPE_REUSEPORT_SOCKARRAY)