summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/kaboom.c2
-rw-r--r--mk/devel.mk4
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