This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: A question about printf
- To: Jonathan Larmour <jlarmour at redhat dot com>
- Subject: Re: [ECOS]A question about printf
- From: "Lewin A.R.W. Edwards" <larwe at larwe dot com>
- Date: Mon, 11 Dec 2000 16:53:36 -0500
- Cc: <ecos-discuss at sources dot redhat dot com>
- References: <4.3.2.7.2.20001211161348.00a8b9e0@larwe.com>
Hi Jonathan,
> > printf("** Found logical block %d at physical block %d ",i, k);
> >
> > Looks like a buffering issue of some kind perhaps, try adding \n to the end
>
>This is completely correct for line-buffered output and is mandated by the
>ISO C standard. There is no bug in this case.
Well, please note that I didn't call it a bug, I called it an issue (or
perhaps "behavior") and although I didn't realize it was part of ISO, I
have dealt with the issue before and so it didn't bother me. In my case
anyway it was only exposed by an outright bug in my code :)
=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/