mm/mm_heap/malloc: change a dbg level to error for failure case
When requested size is bigger than allocable size
(MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE), it prints an error
message through mvdbg. But because it is a failure case, dbg is right.
Let's use mdbg instead of mvdbg.
@@ -119,7 +119,7 @@ FAR void *mm_malloc(FAR struct mm_heap_s *heap, size_t size)
}
if (size > MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE) {
- mvdbg("Because of mm_allocnode, %u cannot be allocated. The maximun allocable size is (MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE) : %u\n.", size, (MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE));
+ mdbg("Because of mm_allocnode, %u cannot be allocated. The maximun allocable size is (MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE) : %u\n.", size, (MM_ALIGN_DOWN(MMSIZE_MAX) - SIZEOF_MM_ALLOCNODE));
return NULL;
}
