mirror of
https://github.com/apache/nuttx.git
synced 2026-03-23 22:43:57 +08:00
mm/mm_malloc: dump all allocated memory info when malloc failed
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user