lwip-devel
[Top][All Lists]
Advanced

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

RE: [lwip-devel] %#p in some traces


From: Bill Auerbach
Subject: RE: [lwip-devel] %#p in some traces
Date: Thu, 23 Apr 2009 10:28:22 -0400

The behavior is undefined, so it wouldn't be technically legal (or
portable).  I would make the assumption that a # on a format that library
didn't handle would be ignored.  It's after the % and before the format
specifier so it can't really be output with the data.

I see Kieran's reply too - these #'s caused compiler errors or warnings?  A
compiler that is doing more than it is defined to do and is checking the
semantics of arguments to functions is doing this by compiler extension.
Removing these #'s isn't much different than changing source code for
compiler bugs.  Do we want to be changing source code for compiler
extensions too?

Bill

>-----Original Message-----
>Is the # legal for all compilers inside %p ? I'm not sure about when I
>read that :
>
>http://www.opengroup.org/onlinepubs/9699919799/functions/printf.html







reply via email to

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