From 56e5bc42688f6a19eb6cdc1eece3371756a0f50f Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 24 May 2014 10:40:07 -0600 Subject: [PATCH] Costmetic changes to memory manager debug output --- mm/mm_mallinfo.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mm/mm_mallinfo.c b/mm/mm_mallinfo.c index acda75d8fd..e37f82266b 100644 --- a/mm/mm_mallinfo.c +++ b/mm/mm_mallinfo.c @@ -99,8 +99,13 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info) node < heap->mm_heapend[region]; node = (struct mm_allocnode_s *)((char*)node + node->size)) { - mvdbg("region=%d node=%p size=%p preceding=%p\n", region, node, node->size, node->preceding); - if (node->preceding & MM_ALLOC_BIT) + mvdbg("region=%d node=%p size=%p preceding=%p (%c)\n", + region, node, node->size, (node->preceding & ~MM_ALLOC_BIT), + (node->preceding & MM_ALLOC_BIT) ? 'A' : 'F'); + + /* Check if the node corresponds to an allocated memory chunk */ + + if ((node->preceding & MM_ALLOC_BIT) != 0) { uordblks += node->size; }