From 1383b8ece515da2d4b97aec0caffa6ec78c249b0 Mon Sep 17 00:00:00 2001 From: stefan Date: Wed, 4 Aug 2010 11:17:14 +0000 Subject: [PATCH] - minor changes to increase the debugging output git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@30 315a16e6-25f9-4109-90ae-ca3045a26c18 --- lwip/src/include/arch/cc.h | 12 ++++++------ lwip/src/include/lwipopts.h | 12 ++++++++++++ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/lwip/src/include/arch/cc.h b/lwip/src/include/arch/cc.h index c189d2ef..4bd1070e 100644 --- a/lwip/src/include/arch/cc.h +++ b/lwip/src/include/arch/cc.h @@ -52,12 +52,12 @@ typedef signed int s32_t; typedef size_t mem_ptr_t; /* Define (sn)printf formatters for these lwIP types */ -#define U16_F "u" -#define S16_F "d" -#define X16_F "x" -#define U32_F "u" -#define S32_F "d" -#define X32_F "x" +#define U16_F "hu" +#define S16_F "hd" +#define X16_F "hx" +#define U32_F "lu" +#define S32_F "ld" +#define X32_F "lx" /* Compiler hints for packing structures */ //#define PACK_STRUCT_FIELD(x) x __attribute__((packed)) diff --git a/lwip/src/include/lwipopts.h b/lwip/src/include/lwipopts.h index fd0e0b26..5ef58054 100644 --- a/lwip/src/include/lwipopts.h +++ b/lwip/src/include/lwipopts.h @@ -31,4 +31,16 @@ */ #define LWIP_TCP 1 +/* DEBUG options */ +#define LWIP_DEBUG 1 +#define DHCP_DEBUG LWIP_DBG_ON +#define ETHARP_DEBUG LWIP_DBG_ON +#define TCPIP_DEBUG LWIP_DBG_ON +#define SYS_DEBUG LWIP_DBG_ON +#define RAW_DEBUG LWIP_DBG_ON +#define MEM_DEBUG LWIP_DBG_ON +#define IP_DEBUG LWIP_DBG_ON +#define INET_DEBUG LWIP_DBG_ON +#define NETIF_DEBUG LWIP_DBG_ON + #endif