tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: printf and -m
On Sat, Aug 22, 2015 at 04:28:32AM +0100, Roy Marples wrote:
> Let us list %m advantages in printf
> 1) reduces code size
> 2) if syslog requires %m, there should be zero code size increase moving
> the logic to printf
> 3) increases portability
I strongly disagree on (3) - it causes new code written to be less portable.
I would like to see the gcc change commited (and filed upstream); I don't
really care about what we do to our printf as long as gcc can warn about
the non-standard compliant %m usage.
Martin
Home |
Main Index |
Thread Index |
Old Index