Donny9 commented on a change in pull request #5855:
URL: https://github.com/apache/incubator-nuttx/pull/5855#discussion_r835832889
##########
File path: mm/mm_heap/mm_malloc.c
##########
@@ -243,7 +244,13 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t
size)
#ifdef CONFIG_DEBUG_MM
else
{
+ struct mallinfo minfo;
+
mwarn("WARNING: Allocation failed, size %zu\n", alignsize);
+ mm_mallinfo(heap, &minfo);
+ mwarn("Total:%d, used:%d, free:%d, largest:%d, nused:%d, nfree:%d\n",
+ minfo.arena, minfo.uordblks, minfo.fordblks,
+ minfo.mxordblk, minfo.aordblks, minfo.ordblks);
Review comment:
Done! Thks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]