lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: LWIP_DEBUGF


From: Jakob Stoklund Olesen
Subject: [lwip-users] Re: LWIP_DEBUGF
Date: Tue, 21 Jul 2009 10:42:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

"Bernhard 'Gustl' Bauer" <address@hidden>
writes:

> LWIP_DEBUGF(DHCP_DEBUG | LWIP_DBG_TRACE | LWIP_DBG_STATE, (LWIP_DEBUG_F
>       "dhcp_start(netif=%p) %c%c%"U16_F"\n", (void*)netif,
>       netif->name[0], netif->name[1], (u16_t)netif->num));
>
> Is there any better way to do this? I like to avoid all the changes I have to 
> do
> every time I change LWIP version.

#define LWIP_PLATFORM_DIAG(X) myprintf X

void myprintf(const char *fmt, ...)
{
  /* vsprintf to fixed buffer */
}





reply via email to

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