From 4e33316f656bf9a893ad0e828cc9a0acbc0a9d30 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Thu, 25 May 2017 19:24:06 +0300 Subject: [PATCH] malloc: Turn on DEBUG when enabling unit tests Unit tests require mallinfo which in turn requires DEBUG on dlmalloc to be enabled. The dependancy on CONFIG_SANDBOX is wrong. Signed-off-by: Pantelis Antoniou Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- common/dlmalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dlmalloc.c b/common/dlmalloc.c index adc680e..fc1e8b3 100644 --- a/common/dlmalloc.c +++ b/common/dlmalloc.c @@ -1,6 +1,6 @@ #include -#ifdef CONFIG_SANDBOX +#if defined(CONFIG_UNIT_TEST) #define DEBUG #endif