common: malloc simple: enable space exhausted message

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If089f38abf5e205a2b9f00fd2d735751fd7d5201
This commit is contained in:
Joseph Chen 2020-09-17 20:02:22 +08:00
parent e091dc9d13
commit 93fd134f77
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ void *memalign_simple(size_t align, size_t bytes)
addr = ALIGN(gd->malloc_base + gd->malloc_ptr, align);
new_ptr = addr + bytes - gd->malloc_base;
if (new_ptr > gd->malloc_limit) {
debug("space exhausted\n");
printf("space exhausted\n");
return NULL;
}