|
From: | Bill Auerbach |
Subject: | RE: [lwip-users] using LWIP_DEBUG |
Date: | Thu, 28 May 2009 17:28:52 -0400 |
What platform (compiler) are you using? The macro argument
… may not be compatible – it is a C99 addition and your compiler
might not support it. I don’t know where it came from since it’s
not in the lwIP code I’ve seen. Does #define
LWIP_PLATFORM_DIAG( x ) do{ sys_debug x ;} while( 0 ) work for you? This matches what I have. Bill From:
address@hidden
[mailto:address@hidden On Behalf
Of Alexandre Malo Problem
resolved! It
was a problem in cc.h wich I dont quite understand really. Problem
occured with LWIP_PLATFORM_DIAG in LWIP_DEBUGF. I
was given the code so I dont know on what purpose it was not well write. Here
is what was making all the trouble. //Orignial
LWIP_PLATFORM_DIAG wich was doing the error -------------------------------------------------- void
sys_debug( const char *const fmt, ... ) ------------------------------------------------- ------------------------------------------------------------------ What
was calling LWIP_PLATFORM_DIAG is LWIP_DEBUGF ------------------------------------------------------------------ #ifdef
LWIP_DEBUG #else
/* LWIP_DEBUG */ ------------------------------------------------------------- If
anyone have an idea on why there was a bug with the original version. Im
not really good with macro yet and I wish to learn. Thanks! Alexandre
Malo |
[Prev in Thread] | Current Thread | [Next in Thread] |