lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] bug report


From: Martin Velek
Subject: [lwip-users] bug report
Date: Fri, 5 Mar 2010 15:01:05 +0100

Please could someone post this bug? I do not know how to find out my
lost username to log-in.

Category:       LWIP_DEBUGF     Severity:       3 - Normal
Item Group:     Faulty Behaviour        Status:         Open
lwIP version:   1.3.2

In the file etharp.c, line 1155 in debug mode, the mac addresses and
frame type are defined as:
"ethernet_input: dest:%02x:%02x:%02x:%02x:%02x:%02x,
src:%02x:%02x:%02x:%02x:%02x:%02x, type:%2hx\n",

This format string violates some non-sprintf functions. Every port has
in the cc.h  /* Define (sn)printf formatters for these lwIP types */.
I would suggest to change to "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:%2"U16_F"\n"

+ check the source code if there are other places with "hardcoded" values.

Regard,
Martin




reply via email to

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