lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #33079] Formatting error in debug string in sockets.c


From: David Empson
Subject: [lwip-devel] [bug #33079] Formatting error in debug string in sockets.c
Date: Thu, 14 Apr 2011 23:30:53 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 (.NET CLR 3.5.30729)

URL:
  <http://savannah.nongnu.org/bugs/?33079>

                 Summary: Formatting error in debug string in sockets.c
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: dempson
            Submitted on: Fri 15 Apr 2011 11:30:52 NZST
                Category: sockets
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

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));






    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?33079>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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