[syslinux:elflink] Allow for UNDIIF_ID_DEBUG in 1 mk line
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Thu Jul 25 02:54:06 PDT 2013
Commit-ID: 6438fbcb6cb7e0cd40e4bb3681ada047fe77ffdd
Gitweb: http://www.syslinux.org/commit/6438fbcb6cb7e0cd40e4bb3681ada047fe77ffdd
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sat, 20 Jul 2013 09:25:23 -0400
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sat, 20 Jul 2013 09:25:23 -0400
Allow for UNDIIF_ID_DEBUG in 1 mk line
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 at gmail.com>
---
core/kaboom.c | 2 +-
mk/devel.mk | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/core/kaboom.c b/core/kaboom.c
index 310365d..1686eed 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 041e876..421c2e4 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
More information about the Syslinux-commits
mailing list