diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-05-24 10:40:07 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-05-24 10:40:07 -0600 |
commit | f3f00384b43f110c230725f0d75317fe1b0fcb85 (patch) | |
tree | 6aed4e32577a1b9b05bb56060d9751d91cd37668 /nuttx/mm | |
parent | 97a8f813e234bc11b36c40b7bc9c674679bce262 (diff) | |
download | nuttx-f3f00384b43f110c230725f0d75317fe1b0fcb85.tar.gz nuttx-f3f00384b43f110c230725f0d75317fe1b0fcb85.tar.bz2 nuttx-f3f00384b43f110c230725f0d75317fe1b0fcb85.zip |
Costmetic changes to memory manager debug output
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/mm_mallinfo.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/mm/mm_mallinfo.c b/nuttx/mm/mm_mallinfo.c index acda75d8f..e37f82266 100644 --- a/nuttx/mm/mm_mallinfo.c +++ b/nuttx/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; } |