Thu 14 Apr 2011 11:30:52 PM UTC, original submission:
There is a minor error in one debug string in sockets.c.
Lines 897 and 898 read:
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_sendto(%d, data=%p, short_size=%d"U16_F", flags=0x%x to=",
s, data, short_size, flags));
The 'short_size=%d"U16_F"' part has an extraneous 'd' after the '%', which will result in this field being printed using the format specifier %d followed by the literal text of the platform specific U16_F macro.
Assuming none of the other format specifiers need to use platform-specific macros, the correct version should be:
LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_sendto(%d, data=%p, short_size=%"U16_F", flags=0x%x to=",
s, data, short_size, flags));
|