testing/mm: use unified name for macros

All macros in mm.h start with MM_

Signed-off-by: Xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Xuxingliang 2023-09-07 16:08:19 +08:00 committed by Xiang Xiao
parent 52353a7eb2
commit facc9ddc63

View File

@ -158,7 +158,7 @@ static void do_mallocs(FAR void **mem, FAR const int *size,
if (mem[j] == NULL) 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", fprintf(stderr, "(%d)malloc failed for allocsize=%d\n",
i, allocsize); i, allocsize);
@ -213,7 +213,7 @@ static void do_reallocs(FAR void **mem, FAR const int *oldsize,
if (ptr == NULL) 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, fprintf(stderr,
"(%d)realloc failed for allocsize=%d\n", i, allocsize); "(%d)realloc failed for allocsize=%d\n", i, allocsize);
@ -257,7 +257,7 @@ static void do_memaligns(FAR void **mem,
if (mem[j] == NULL) 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]; 2 * align[i];
fprintf(stderr, fprintf(stderr,