aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2012-05-28 18:16:19 -0400
committerGene Cumm <gene.cumm@gmail.com>2012-05-28 18:16:19 -0400
commitad5d77530e96e3759b4d1712a3d9b861ea07712c (patch)
tree2c9887a523b5b30b1c255f25b7d20c4e45041b5d /com32/modules
parenta35dce33744f649fdbc0af0da664554cccaa8248 (diff)
downloadsyslinux-ad5d77530e96e3759b4d1712a3d9b861ea07712c.tar.gz
syslinux-ad5d77530e96e3759b4d1712a3d9b861ea07712c.tar.xz
syslinux-ad5d77530e96e3759b4d1712a3d9b861ea07712c.zip
pxechn: Turn off debug
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/pxechn.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/com32/modules/pxechn.c b/com32/modules/pxechn.c
index 3f9ebd32..301f311e 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)