buglwIP - A Lightweight TCP/IP stack - Bugs: bug #33079, Formatting error in debug string...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #33079: Formatting error in debug string in sockets.c

Submitted by:  David Empson <dempson>
Submitted on:  Thu 14 Apr 2011 11:30:52 PM UTC  
 
Category: sockets/netconnSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: CVS Head

Thu 21 Apr 2011 05:22:38 AM UTC, comment #1:

Fixed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
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));

David Empson <dempson>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by dempson (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 21 Apr 2011 05:22:38 AM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1