From 94e4df27577d8a52dec41b1290365a64b4c4d1a2 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Wed, 1 Nov 2006 16:09:06 -0500 Subject: kexec-tools: Introduce dfprintf macro for debugging statements o Add dprintf() macro to put debugging statements in the code. Signed-off-by: Vivek Goyal Signed-off-by: Simon Horman --- kexec/kexec.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 */ -- cgit