diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index adc680e95938b7bb6b213f7c691e7de3cad69d1e..fc1e8b391c3cc22a93c1be371252f5c4cafd3171 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