projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54cc4dc
)
malloc: Turn on DEBUG when enabling unit tests
author
Pantelis Antoniou
<pantelis.antoniou@konsulko.com>
Thu, 25 May 2017 16:24:06 +0000
(19:24 +0300)
committer
Tom Rini
<trini@konsulko.com>
Mon, 5 Jun 2017 18:13:11 +0000
(14:13 -0400)
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>
common/dlmalloc.c
patch
|
blob
|
history
diff --git
a/common/dlmalloc.c
b/common/dlmalloc.c
index adc680e95938b7bb6b213f7c691e7de3cad69d1e..fc1e8b391c3cc22a93c1be371252f5c4cafd3171 100644
(file)
--- a/
common/dlmalloc.c
+++ b/
common/dlmalloc.c
@@
-1,6
+1,6
@@
#include <common.h>
-#if
def CONFIG_SANDBOX
+#if
defined(CONFIG_UNIT_TEST)
#define DEBUG
#endif