[syslinux:master] pxechn: Turn off debug
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Mon Oct 22 12:51:04 PDT 2012
Commit-ID: ad5d77530e96e3759b4d1712a3d9b861ea07712c
Gitweb: http://www.syslinux.org/commit/ad5d77530e96e3759b4d1712a3d9b861ea07712c
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Mon, 28 May 2012 18:16:19 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Mon, 28 May 2012 18:16:19 -0400
pxechn: Turn off debug
Signed-off-by: Gene Cumm <gene.cumm at gmail.com>
---
com32/modules/pxechn.c | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/com32/modules/pxechn.c b/com32/modules/pxechn.c
index 3f9ebd3..301f311 100644
--- a/com32/modules/pxechn.c
+++ b/com32/modules/pxechn.c
@@ -43,7 +43,11 @@
#include <limits.h>
-#define PXECHN_DEBUG 1
+#ifdef DEBUG
+# define PXECHN_DEBUG 1
+#else
+# define PXECHN_DEBUG 0
+#endif
typedef union {
uint64_t q;
@@ -54,15 +58,21 @@ typedef union {
#define dprintf0(f, ...) ((void)0)
+#ifndef dprintf
+# if (PXECHN_DEBUG > 0)
+# define dprintf printf
+# else
+# define dprintf(f, ...) ((void)0)
+# endif
+#endif
+
#if (PXECHN_DEBUG > 0)
# define dpressanykey pressanykey
-# define dprintf printf
# define dprint_pxe_bootp_t print_pxe_bootp_t
# define dprint_pxe_vendor_blk print_pxe_vendor_blk
# define dprint_pxe_vendor_raw print_pxe_vendor_raw
#else
# define dpressanykey(tm) ((void)0)
-# define dprintf(f, ...) ((void)0)
# define dprint_pxe_bootp_t(p, l) ((void)0)
# define dprint_pxe_vendor_blk(p, l) ((void)0)
# define dprint_pxe_vendor_raw(p, l) ((void)0)
More information about the Syslinux-commits
mailing list