From facc9ddc638065b33b4f4f57aa4ded47e0ab3d24 Mon Sep 17 00:00:00 2001 From: Xuxingliang Date: Thu, 7 Sep 2023 16:08:19 +0800 Subject: [PATCH] testing/mm: use unified name for macros All macros in mm.h start with MM_ Signed-off-by: Xuxingliang --- testing/mm/mm_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/mm/mm_main.c b/testing/mm/mm_main.c index 0c6771adf..40fbb6bf9 100644 --- a/testing/mm/mm_main.c +++ b/testing/mm/mm_main.c @@ -158,7 +158,7 @@ static void do_mallocs(FAR void **mem, FAR const int *size, if (mem[j] == NULL) { - int allocsize = MM_ALIGN_UP(size[j] + SIZEOF_MM_ALLOCNODE); + int allocsize = MM_ALIGN_UP(size[j] + MM_SIZEOF_ALLOCNODE); fprintf(stderr, "(%d)malloc failed for allocsize=%d\n", i, allocsize); @@ -213,7 +213,7 @@ static void do_reallocs(FAR void **mem, FAR const int *oldsize, if (ptr == NULL) { - int allocsize = MM_ALIGN_UP(newsize[j] + SIZEOF_MM_ALLOCNODE); + int allocsize = MM_ALIGN_UP(newsize[j] + MM_SIZEOF_ALLOCNODE); fprintf(stderr, "(%d)realloc failed for allocsize=%d\n", i, allocsize); @@ -257,7 +257,7 @@ static void do_memaligns(FAR void **mem, if (mem[j] == NULL) { - int allocsize = MM_ALIGN_UP(size[j] + SIZEOF_MM_ALLOCNODE) + + int allocsize = MM_ALIGN_UP(size[j] + MM_SIZEOF_ALLOCNODE) + 2 * align[i]; fprintf(stderr,