diff options
author | Simon Glass <sjg@chromium.org> | 2014-07-11 04:23:33 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-07-23 13:06:17 (GMT) |
commit | 6d7601e74437f3c915667a829ab722ba5174ec72 (patch) | |
tree | 80d96a88fef982db80c0a06274e2365e6ebba4cd | |
parent | b53e94b1329fd8b4fbd128f0a07a060a7c2e2149 (diff) | |
download | u-boot-fsl-qoriq-6d7601e74437f3c915667a829ab722ba5174ec72.tar.xz |
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.c | 4 |
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 ------------ */ |