[Patch, Newlib-nano]Improve printf to support non nul-terminated string

Terry Guo terry.guo@arm.com
Thu Nov 6 05:53:00 GMT 2014



> -----Original Message-----
> From: Bin.Cheng [mailto:amker.cheng@gmail.com]
> Sent: Thursday, November 06, 2014 1:06 PM
> To: Joey Ye
> Cc: Terry Guo; Bin Cheng; newlib@sourceware.org
> Subject: Re: [Patch, Newlib-nano]Improve printf to support non nul-
> terminated string
> 
> On Thu, Nov 6, 2014 at 12:10 PM, Joey Ye <joey.ye.cc@gmail.com> wrote:
> > Now there is no point to keep #if 0. Please remove it.
> 
> 
> Yes, I think both the commentary and #if 0 below are not needed any more.
> 
>       /* Below code is kept for reading.  The check is redundant because
>      pdata->prec will be set to pdata->size if it is -1 previously.  */
#if 0
>       if (pdata->prec > pdata->size)
> #endif
> 
> Thanks,
> bin

Thanks. Here is updated patch. Is this one OK?

BR,
Terry
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nano-non-nul-terminated-v5.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20141106/8bd03cb4/attachment.txt>


More information about the Newlib mailing list