This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

Re: printf("\n").


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.

Sergei.

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.
>  

[...]



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