This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: [PATCH] Support %m in printf functions
- From: "Howland Craig D (Craig)" <howland at LGSInnovations dot com>
- To: "newlib" <newlib at sources dot redhat dot com>
- Date: Tue, 3 Jan 2012 10:43:19 -0500
- Subject: RE: [PATCH] Support %m in printf functions
- References: <1325440746.6724.8.camel@YAAKOV04> <4F02DA80.9040603@arm.com>
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.