Allow for UNDIIF_ID_DEBUG in 1 mk line
authorGene Cumm <gene.cumm@gmail.com>
Sat, 20 Jul 2013 13:25:23 +0000 (09:25 -0400)
committerGene Cumm <gene.cumm@gmail.com>
Sat, 20 Jul 2013 13:25:23 +0000 (09:25 -0400)
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>
core/kaboom.c
mk/devel.mk

index 310365d..1686eed 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "core.h"
 
-#ifdef DEBUG
+#if defined(DEBUG) || defined(DEBUG_PORT)
 
 #include <dprintf.h>
 
index 041e876..421c2e4 100644 (file)
@@ -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