summaryrefslogtreecommitdiff
path: root/dtc.h
diff options
context:
space:
mode:
authorJon Loeliger <jdl@freescale.com>2008-09-05 14:25:44 -0500
committerJon Loeliger <jdl@jdl.com>2008-10-03 16:09:37 -0500
commit2ebe88df6932a3d685e43d921c9beb526129d2be (patch)
tree3c789516dcadd302eda799bee5f9cc3cd83a7d9a /dtc.h
parent4e1a0a0129b3d197a6f9086df6e5c3874bf6f1f7 (diff)
downloaddtc-2ebe88df6932a3d685e43d921c9beb526129d2be.tar.gz
Add conditionalized debug() print macro.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'dtc.h')
-rw-r--r--dtc.h7
1 files changed, 7 insertions, 0 deletions
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
/*