[PATCH] Support %m in printf functions

Howland Craig D (Craig) howland@LGSInnovations.com
Tue Jan 3 15:43:00 GMT 2012


Aside from the issue of whether this addition should be included or
gated
in some manner, were it to be done, the patch is lacking the necessary
additions to the documentation.  (Additions would be needed in sprintf.c
and swprintf.c.)
Craig 

-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Richard Earnshaw
Sent: Tuesday, January 03, 2012 5:38 AM
To: Yaakov (Cygwin/X)
Cc: newlib
Subject: Re: [PATCH] Support %m in printf functions

On 01/01/12 17:59, Yaakov (Cygwin/X) wrote:
> This patch adds support for the "%m" conversion specifier in the
printf
> and wprintf functions, a GNU extension:
> 
> http://www.kernel.org/doc/man-pages/online/pages/man3/printf.3.html
> 
> Patch and STC attached.
> 

Printf is already very bloated.  On bare metal this adds yet more
overhead for something that's very unlikely to be used.

I think there should be a way of building printf with all GNU extensions
disabled.

R.




More information about the Newlib mailing list