]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sandbox: Always enable malloc debug
authorSimon Glass <sjg@chromium.org>
Fri, 11 Jul 2014 04:23:33 +0000 (22:23 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Jul 2014 13:06:17 +0000 (14:06 +0100)
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>
common/dlmalloc.c

index 26ba8fd622c6c4b9ae1a42bac441b0890b7e2474..f9873393c183350795ed3ac7c15f5552afb5419b 100644 (file)
@@ -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 ------------ */