[U-Boot-Users] how to add CR to printf message automatically?

Wolfgang Denk wd at denx.de
Wed Apr 27 15:18:55 CEST 2005


In message <426f8deb.37a2553d.0897.fffffb13 at mx.gmail.com> you wrote:
> 
> However, the printed messages on hyper-terminal are lacks of "CR" character.

Intall an operating system  on  your  host,  or  at  least  a  decent
terminal program.

> Most messages in u-boot is only ends with "\n".

No. The output routines translate each '\n' character into  a  'r'  +
'\n' sequence.

> How to let printf() automatically add "\r" at the end of messages?

You don't. This already gets done in the serial driver code.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Xerox never comes up with anything original.




More information about the U-Boot mailing list