This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit aa6254d139a4355d6c9174d305436badb4b2b26a Author: Marco Casaroli <[email protected]> AuthorDate: Fri Oct 30 18:19:44 2026 +0100 mm/mm_heap: Fix the nxstyle errors. Fix the nxstyle errors in mm_malloc.c and mm_memdump.c before the next change to these files. The errors are older than that change. This change only adds blank lines and fixes an indentation. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]> --- mm/mm_heap/mm_malloc.c | 2 +- mm/mm_heap/mm_memdump.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index b5e00d5ae2b..025714163e0 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -152,7 +152,7 @@ void mm_free_delaylist(FAR struct mm_heap_s *heap) { if (heap) { - free_delaylist(heap, true); + free_delaylist(heap, true); } } diff --git a/mm/mm_heap/mm_memdump.c b/mm/mm_heap/mm_memdump.c index 78c4eda3d22..e49380d7e61 100644 --- a/mm/mm_heap/mm_memdump.c +++ b/mm/mm_heap/mm_memdump.c @@ -104,6 +104,7 @@ static int memdump_record_comare(FAR const void *a, FAR const void *b) FAR struct mm_allocnode_s *node_b = *(FAR struct mm_allocnode_s **)b; size_t size_a = MM_SIZEOF_NODE(node_a); size_t size_b = MM_SIZEOF_NODE(node_b); + return size_a > size_b ? 1 : -1; } @@ -135,6 +136,7 @@ static void memdump_record_biggest(FAR struct mm_memdump_priv_s *priv, static void memdump_dump_biggestnodes(FAR struct mm_memdump_priv_s *priv) { size_t i; + for (i = 0; i < priv->filled; i++) { priv->info.uordblks += MM_SIZEOF_NODE(priv->node[i]); @@ -188,6 +190,7 @@ static void memdump_handler(FAR struct mm_allocnode_s *node, FAR void *arg) { FAR struct mm_allocnode_s *next = (FAR struct mm_allocnode_s *) ((FAR char *)node + nodesize); + if (MM_PREVNODE_IS_FREE(node) || MM_NODE_IS_FREE(next)) { priv->info.aordblks++;
