summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-07-10 22:23:33 -0600
committerSimon Glass <sjg@chromium.org>2014-07-23 14:06:17 +0100
commit6d7601e74437f3c915667a829ab722ba5174ec72 (patch)
tree80d96a88fef982db80c0a06274e2365e6ebba4cd
parentb53e94b1329fd8b4fbd128f0a07a060a7c2e2149 (diff)
downloadu-boot-imx-6d7601e74437f3c915667a829ab722ba5174ec72.zip
u-boot-imx-6d7601e74437f3c915667a829ab722ba5174ec72.tar.gz
u-boot-imx-6d7601e74437f3c915667a829ab722ba5174ec72.tar.bz2
sandbox: Always enable malloc debug
Tun on DEBUG in malloc(). This adds code space and slows things down but for sandbox this is acceptable. We gain the ability to check for memory leaks in tests. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/dlmalloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 26ba8fd..f987339 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1,5 +1,9 @@
#include <common.h>
+#ifdef CONFIG_SANDBOX
+#define DEBUG
+#endif
+
#if 0 /* Moved to malloc.h */
/* ---------- To make a malloc.h, start cutting here ------------ */