[Crosstoolchain-logs] [device-tree-compiler] 310/357: Add conditionalized debug() print macro.
Hector Oron
zumbi at moszumanska.debian.org
Thu Dec 8 17:06:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
zumbi pushed a commit to branch upstream/1.3.x
in repository device-tree-compiler.
commit 2ebe88df6932a3d685e43d921c9beb526129d2be
Author: Jon Loeliger <jdl at freescale.com>
Date: Fri Sep 5 14:25:44 2008 -0500
Add conditionalized debug() print macro.
Signed-off-by: Jon Loeliger <jdl at freescale.com>
---
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
/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git
More information about the Crosstoolchain-logs
mailing list