[ECOS] printf("\n").

Sergei Organov osv@javad.ru
Thu Apr 6 03:24:00 GMT 2000

Thanks for the patch and the reference, Jonathan. I'll apply the patch to my
sources until CVS isn't updated and let you know if it doesn't work for me.


Jonathan Larmour <jlarmour@redhat.co.uk> writes:

> Sergei Organov wrote:
> > 
> > Hello,
> > 
> > I've done the initial part of porting eCos to the MPC50x processors. I even
> > can run tests on my board now! But all tests that use stdio facilities output
> > text strangely. The problem is that statements like 'printf("\n")' produce
> > character sequence 0xA,0xD while the right sequence is 0xD,0xA. Macros like
> > CYG_TEST_INFO produce right end-of-line sequence though.
> > 
> > Any ideas?
> It's a bug. It should be CRLF, not LFCR. The bug is in
> io/serial/VERSION/src/common/tty.c. Here's a not very well tested patch.


More information about the Ecos-discuss mailing list