mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
mm_mallinfo: Fix a minfo printf-format
This commit is contained in:
committed by
Xiang Xiao
parent
1a3f59be58
commit
3a1515b473
@@ -88,8 +88,9 @@ int mm_mallinfo(FAR struct mm_heap_s *heap, FAR struct mallinfo *info)
|
|||||||
node < heap->mm_heapend[region];
|
node < heap->mm_heapend[region];
|
||||||
node = (FAR struct mm_allocnode_s *)((FAR char *)node + node->size))
|
node = (FAR struct mm_allocnode_s *)((FAR char *)node + node->size))
|
||||||
{
|
{
|
||||||
minfo("region=%d node=%p size=%p preceding=%p (%c)\n",
|
minfo("region=%d node=%p size=%u preceding=%u (%c)\n",
|
||||||
region, node, node->size, (node->preceding & ~MM_ALLOC_BIT),
|
region, node, (unsigned int)node->size,
|
||||||
|
(unsigned int)(node->preceding & ~MM_ALLOC_BIT),
|
||||||
(node->preceding & MM_ALLOC_BIT) ? 'A' : 'F');
|
(node->preceding & MM_ALLOC_BIT) ? 'A' : 'F');
|
||||||
|
|
||||||
/* Check if the node corresponds to an allocated memory chunk */
|
/* Check if the node corresponds to an allocated memory chunk */
|
||||||
|
|||||||
Reference in New Issue
Block a user