lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Re: LWIP_DEBUG in the ethernet_input function


From: Kieran Mansley
Subject: Re: [lwip-devel] Re: LWIP_DEBUG in the ethernet_input function
Date: Tue, 25 Aug 2009 15:43:36 +0100

On Tue, 2009-08-25 at 16:26 +0200, Martin Velek wrote:
> Hi Kieran,
> 
> U8_F and S8_F was only an example. The correct implementation would be
>  LWIP_DEBUGF(ETHARP_DEBUG | LWIP_DBG_TRACE,
>     ("ethernet_input:
> dest:%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F",
> src:%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F":%02"X8_F",
> type:%04"X16_F"\n".....

Can you confirm which bit your sprintf has problems with.  Your
suggestion above makes me think it can't cope with %x whereas before I
was assuming it was the variable width formatter (%02) that it was
struggling with.

Have you tried using %hhx instead of %02x?

> I wanted to point on a bug(issue) in etharp.c function in new release
> LWIP 1.3.1. I do not know how to set it in a bugtracker on lwip pages.

Got to the lwIP savannah pages
(https://savannah.nongnu.org/projects/lwip/), log in (so create an
account if you don't already have one) and under bugs at the top you
should have a "submit" option.

Kieran





reply via email to

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