Skip to content

Commit

Permalink
mem_region: log region name on mem_alloc failure
Browse files Browse the repository at this point in the history
This can help with debugging when trying to do node local
allocations.

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Jul 17, 2018
1 parent 21f540e commit 4757519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/mem_region.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4757519

Please sign in to comment.