summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPantelis Antoniou <pantelis.antoniou@konsulko.com>2017-05-25 16:24:06 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:11 (GMT)
commit4e33316f656bf9a893ad0e828cc9a0acbc0a9d30 (patch)
tree0c4840c64f3a22d16d4244dbaacfb3def3b1f2ca /common
parent54cc4dcfdac1fdb0e7719556fd69980b4f80f47c (diff)
downloadu-boot-4e33316f656bf9a893ad0e828cc9a0acbc0a9d30.tar.xz
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 <pantelis.antoniou@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/dlmalloc.c2
1 files changed, 1 insertions, 1 deletions
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 <common.h>
-#ifdef CONFIG_SANDBOX
+#if defined(CONFIG_UNIT_TEST)
#define DEBUG
#endif