Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49bf4b36 authored by Eric Leblond's avatar Eric Leblond Committed by David S. Miller
Browse files

tools lib bpf: improve warning

parent 5a784498
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -879,7 +879,8 @@ bpf_object__create_maps(struct bpf_object *obj)
			size_t j;
			size_t j;
			int err = *pfd;
			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));
				   strerror(errno));
			for (j = 0; j < i; j++)
			for (j = 0; j < i; j++)
				zclose(obj->maps[j].fd);
				zclose(obj->maps[j].fd);