diff mbox series

[v3,4/5] mem_region: log region name on mem_alloc failure

Message ID 20180717045829.3211-5-stewart@linux.ibm.com
State Accepted
Headers show
Series fast-reboot: parallel memory clearing | expand

Commit Message

Stewart Smith July 17, 2018, 4:58 a.m. UTC
This can help with debugging when trying to do node local
allocations.

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 core/mem_region.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/core/mem_region.c b/core/mem_region.c
index e9f289202f99..0b2961d76e1c 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -447,8 +447,8 @@  void *mem_alloc(struct mem_region *region, size_t size, size_t align,
 	if (r)
 		return r;
 
-	prerror("mem_alloc(0x%lx, 0x%lx, \"%s\") failed !\n",
-		size, align, location);
+	prerror("mem_alloc(0x%lx, 0x%lx, \"%s\", %s) failed !\n",
+		size, align, location, region->name);
 	mem_dump_allocs();
 	return NULL;
 }