lwip-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-members] debug and assert


From: Jani Monoses
Subject: Re: [lwip-members] debug and assert
Date: Mon, 10 Feb 2003 12:20:59 +0200

So is your ERRORF active regardless of LWIP_DEBUG ?
Or it just  ignores particular DEBUG flags and always outputs when
LWIP_DEBUG is set?
I think it's the latter but just want to make sure I got your idea.


> On Thu, 6 Feb 2003, Jani Monoses wrote:
> 
> > Hi I thought of adding LWIP_ prefixes to ASSERT and DEBUGF to avoid
> > namespace clashes. Also to make debug.h platform independent have the
> > archs define LWIP_PLATFORM_{DEBUGF,ASSERT} so no more stdio.h fflush()
> > and abort() in generic code.
> 
> Sounds good, if it's causing a problem, that should fix it without any
> difficulty.  I also have a companion to DEBUGF which is ERRORF.  It has
> exactly the same syntax, but always results in output rather than
> examining the flag.  This is useful if you just want a one off message to
> appear rather than having to enable all the messages for that type, and
> for when you want an error message regardless of the debug.h settings.
> (ie. when it really is an error that is being reported, not just
> information).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]