From 7d1ce001d409431cc1e5648cc379b3c15a2ae862 Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Mon, 10 Nov 2008 13:21:32 -0500 Subject: [PATCH 1/1] add dolog hooks into lwip --- lwip/src/include/arch/cc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lwip/src/include/arch/cc.h b/lwip/src/include/arch/cc.h index 52adcb5..df50e8d 100644 --- a/lwip/src/include/arch/cc.h +++ b/lwip/src/include/arch/cc.h @@ -2,6 +2,7 @@ #define _ARCH_CC_H #include +#include #include typedef uint8_t u8_t; @@ -27,8 +28,7 @@ typedef uint32_t mem_ptr_t; #define LWIP_PLATFORM_HTONS(x) htons(x) #define LWIP_PLATFORM_HTONL(x) htonl(x) -/* XXX fix this */ -#define LWIP_PLATFORM_DIAG(x) -#define LWIP_PLATFORM_ASSERT(x) +#define LWIP_PLATFORM_DIAG(x) dolog(x) +#define LWIP_PLATFORM_ASSERT(x) dologf("ASSERT FAILED: %s\n", (x)); #endif -- 2.43.0