diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2006-11-01 16:09:06 -0500 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-11-08 12:58:08 +0900 |
commit | 94e4df27577d8a52dec41b1290365a64b4c4d1a2 (patch) | |
tree | ac460db4c806905f13bdb026e8952bf863443b0a | |
parent | 2e9b9aed5d7ddf6195fb3d7da9c62596df11e308 (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.h | 7 |
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 */ |