From 98df3c6e0a69a357e1d89c6de9bdc6677fefdfb7 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 24 May 2007 07:19:34 +0000 Subject: [PATCH] Removed LWIP_DEBUG_ASSERT --- src/core/pbuf.c | 4 ++-- src/include/lwip/debug.h | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index f704c47e..5ccb0c23 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -191,7 +191,7 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_flag flag) /* make previous pbuf point to this pbuf */ r->next = q; /* set total length of this pbuf and next in chain */ - LWIP_DEBUG_ASSERT("rem_len < max_u16_t",rem_len < 0xffff); + LWIP_ASSERT("rem_len < max_u16_t",rem_len < 0xffff); q->tot_len = (u16_t)rem_len; /* this pbuf length is pool size, unless smaller sized tail */ q->len = rem_len > PBUF_POOL_BUFSIZE? PBUF_POOL_BUFSIZE: (u16_t)rem_len; @@ -298,7 +298,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len) /* decrease remaining length by pbuf length */ rem_len -= q->len; /* decrease total length indicator */ - LWIP_DEBUG_ASSERT("grow < max_u16_t",grow < 0xffff); + LWIP_ASSERT("grow < max_u16_t",grow < 0xffff); q->tot_len += (u16_t)grow; /* proceed to next pbuf in chain */ q = q->next; diff --git a/src/include/lwip/debug.h b/src/include/lwip/debug.h index c3c9282c..1a0b0317 100644 --- a/src/include/lwip/debug.h +++ b/src/include/lwip/debug.h @@ -63,14 +63,8 @@ #ifndef LWIP_NOASSERT # define LWIP_ASSERT(x,y) do { if(!(y)) LWIP_PLATFORM_ASSERT(x); } while(0) -# ifdef LWIP_DEBUG -# define LWIP_DEBUG_ASSERT(x,y) LWIP_ASSERT(x,y) -# else -# define LWIP_DEBUG_ASSERT(x,y) -# endif #else # define LWIP_ASSERT(x,y) -# define LWIP_DEBUG_ASSERT(x,y) #endif #ifdef LWIP_DEBUG