summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@in.ibm.com>2006-11-01 16:09:06 -0500
committerSimon Horman <horms@verge.net.au>2006-11-08 12:58:08 +0900
commit94e4df27577d8a52dec41b1290365a64b4c4d1a2 (patch)
treeac460db4c806905f13bdb026e8952bf863443b0a
parent2e9b9aed5d7ddf6195fb3d7da9c62596df11e308 (diff)
kexec-tools: Introduce dfprintf macro for debugging statements
o Add dprintf() macro to put debugging statements in the code. Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/kexec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h
index d6942bf..890dbb0 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -202,4 +202,11 @@ void arch_update_purgatory(struct kexec_info *info);
int is_crashkernel_mem_reserved(void);
#define MAX_LINE 160
+
+#ifdef DEBUG
+#define dfprintf(args...) do {fprintf(args);} while(0)
+#else
+#define dfprintf(args...) do { } while(0)
+#endif
+
#endif /* KEXEC_H */