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