From 2ebe88df6932a3d685e43d921c9beb526129d2be Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Fri, 5 Sep 2008 14:25:44 -0500 Subject: [PATCH] Add conditionalized debug() print macro. Signed-off-by: Jon Loeliger --- dtc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dtc.h b/dtc.h index 5ead895..5cb9f58 100644 --- a/dtc.h +++ b/dtc.h @@ -36,6 +36,13 @@ #include "util.h" +#ifdef DEBUG +#define debug(fmt,args...) printf(fmt, ##args) +#else +#define debug(fmt,args...) +#endif + + #define DEFAULT_FDT_VERSION 17 /*