[Skiboot] [PATCH v3 4/5] mem_region: log region name on mem_alloc failure
Stewart Smith
stewart at linux.ibm.com
Tue Jul 17 14:58:28 AEST 2018
This can help with debugging when trying to do node local
allocations.
Signed-off-by: Stewart Smith <stewart at linux.ibm.com>
---
core/mem_region.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
}
--
2.17.1
More information about the Skiboot
mailing list