This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH] Support %m in printf functions


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]