diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2013-07-20 09:25:23 -0400 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2013-07-20 09:25:23 -0400 |
commit | 6438fbcb6cb7e0cd40e4bb3681ada047fe77ffdd (patch) | |
tree | a269f0a6cf9350b76dd8606354034f8dfdd9c5dc | |
parent | fa7e653c92c99368152a261c7065a3eb4cb3de61 (diff) | |
download | syslinux-6438fbcb6cb7e0cd40e4bb3681ada047fe77ffdd.tar.gz |
Allow for UNDIIF_ID_DEBUG in 1 mk linesyslinux-5.11-pre9
Add comments and 1 line to mk/devel.mk to debug headers of all
packets sent/recieved through undiif.c.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
-rw-r--r-- | core/kaboom.c | 2 | ||||
-rw-r--r-- | mk/devel.mk | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/core/kaboom.c b/core/kaboom.c index 310365d3..1686eedc 100644 --- a/core/kaboom.c +++ b/core/kaboom.c @@ -4,7 +4,7 @@ #include "core.h" -#ifdef DEBUG +#if defined(DEBUG) || defined(DEBUG_PORT) #include <dprintf.h> diff --git a/mk/devel.mk b/mk/devel.mk index 041e876e..421c2e45 100644 --- a/mk/devel.mk +++ b/mk/devel.mk @@ -3,3 +3,7 @@ GCCWARN += -Wno-clobbered #GCCWARN += -DDEBUG_MALLOC # GCCWARN += -DDEBUG_PORT=0x3f8 -DDEBUG=1 GCCWARN += -DDYNAMIC_DEBUG + +## The following will enable printing ethernet/arp/ip/icmp/tcp/udp headers +## in undiif.c +# GCCWARN += -DUNDIIF_ID_DEBUG=0x80U -DLWIP_DEBUG -DDEBUG_PORT=0x3f8 |