mm/mm_malloc: dump all allocated memory info when malloc failed

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2022-01-28 14:11:47 +08:00 committed by Xiang Xiao
parent 168074fe2e
commit 018d7d605c

View File

@ -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