@@ -17,7 +17,11 @@ RMDIR := rm -rf
RM := rm -f
COPY := cp -r
-EXTRA_CFLAGS += -DODP_DEBUG=1
+ifeq ($(ODP_DEBUG_PRINT),no)
+EXTRA_CFLAGS += -DODP_DEBUG_PRINT=0
+else
+EXTRA_CFLAGS += -DODP_DEBUG_PRINT=1
+endif
ifeq ($(DEBUG),yes)
EXTRA_CFLAGS += -O0 -g
@@ -52,7 +52,9 @@ extern "C" {
* Debug printing macro, which prints output when DEBUG flag is set.
*/
#define ODP_DBG(fmt, ...) \
- do { if (ODP_DEBUG == 1) printf(fmt, ##__VA_ARGS__); } while (0)
+ do { if (ODP_DEBUG_PRINT == 1) \
+ printf(fmt, ##__VA_ARGS__); \
+ } while (0)
/**
* Print output to stderr (file, line and function).
Signed-off-by: Anders Roxell <anders.roxell@linaro.org> --- Makefile.inc | 6 +++++- include/odp_debug.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-)