From 93fd134f77e3a4a40374021de60b3d4129456d63 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Thu, 17 Sep 2020 20:02:22 +0800 Subject: [PATCH] common: malloc simple: enable space exhausted message Signed-off-by: Joseph Chen Change-Id: If089f38abf5e205a2b9f00fd2d735751fd7d5201 --- common/malloc_simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/malloc_simple.c b/common/malloc_simple.c index 611400265b..3c457cd227 100644 --- a/common/malloc_simple.c +++ b/common/malloc_simple.c @@ -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; }