[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] typo in src/core/pbuf.c:770
From: |
Bob Ammerman |
Subject: |
Re: [lwip-users] typo in src/core/pbuf.c:770 |
Date: |
Fri, 28 Mar 2003 08:44:38 -0800 |
%p is part of the C standard, however its output is 'implementation
defined'. Also, to be pedantic all pointers should be cast to (void *)
before attempting to output them with '%p'.
String concatenation is a _requirement_ of ANSI C.
Does lwIP have any stated restrictions on target platforms? EG: Requires
ANSI C compiler?
Bob Ammerman
RAm Systems
----- Original Message -----
From: "Leon Woestenberg" <address@hidden>
To: "Mailing list for lwIP users" <address@hidden>
Sent: Thursday, March 27, 2003 4:21 PM
Subject: Re: [lwip-users] typo in src/core/pbuf.c:770
> Hello,
>
> >...printf("blah blah " LWIP_POINTER_FORMAT " blah blah",
LWIP_POINTER_CAST
> myptr)
>
> This solution might work, but is really undesirable.
>
> It will be like waiting for the first people to come up with their
specific
> compiler that
> does not handle compile-time string catenation, or whatever next.
>
> Unless we violate a C standard by using "%p" I would like to keep it.
>
> If your specific compiler/library doesn't handle this, please consider
using
> an
> alternative printf(). An excellent alternative (also for embedded systems)
> is:
>
> http://daniel.haxx.se/trio/
>
> Regards,
>
> Leon.
>
>
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/lwip-users
>