diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2012-05-28 18:16:19 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2012-05-28 18:16:19 -0400 |
commit | ad5d77530e96e3759b4d1712a3d9b861ea07712c (patch) | |
tree | 2c9887a523b5b30b1c255f25b7d20c4e45041b5d | |
parent | a35dce33744f649fdbc0af0da664554cccaa8248 (diff) | |
download | syslinux-ad5d77530e96e3759b4d1712a3d9b861ea07712c.tar.gz |
pxechn: Turn off debug
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r-- | 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 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) |