mm/mm_malloc: dump all allocated memory info when malloc failed
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
168074fe2e
commit
018d7d605c
@ -244,6 +244,8 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size)
|
||||
else
|
||||
{
|
||||
mwarn("WARNING: Allocation failed, size %zu\n", alignsize);
|
||||
mm_memdump(heap, -1);
|
||||
DEBUGASSERT(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user