o Add dprintf() macro to put debugging statements in the code.

Signed-off-by: Vivek Goyal <[EMAIL PROTECTED]>
---

 kexec/kexec.h |    7 +++++++
 1 file changed, 7 insertions(+)

diff -puN kexec/kexec.h~kexec-tools-add-dprintf-macro kexec/kexec.h
--- horms-kexec-tools/kexec/kexec.h~kexec-tools-add-dprintf-macro       
2006-10-16 13:33:25.000000000 -0400
+++ horms-kexec-tools-root/kexec/kexec.h        2006-10-16 13:33:25.000000000 
-0400
@@ -202,4 +202,11 @@ void arch_update_purgatory(struct kexec_
 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 */
_
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot

Reply via email to