common: malloc simple: enable space exhausted message
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: If089f38abf5e205a2b9f00fd2d735751fd7d5201
This commit is contained in:
parent
e091dc9d13
commit
93fd134f77
|
|
@ -40,7 +40,7 @@ void *memalign_simple(size_t align, size_t bytes)
|
||||||
addr = ALIGN(gd->malloc_base + gd->malloc_ptr, align);
|
addr = ALIGN(gd->malloc_base + gd->malloc_ptr, align);
|
||||||
new_ptr = addr + bytes - gd->malloc_base;
|
new_ptr = addr + bytes - gd->malloc_base;
|
||||||
if (new_ptr > gd->malloc_limit) {
|
if (new_ptr > gd->malloc_limit) {
|
||||||
debug("space exhausted\n");
|
printf("space exhausted\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue