Skip to contentSkip to conversation

how to add CR to printf message automatically?

U-Boot-Users wnlee1109 at gmail.com 2 participants 2 messages Apr 27, 2005

lore
Share & tools
lore
#0 lore raw

Dear u-boot community,

I am now porting u-boot to my own evaluation board. The UART functions now.

However, the printed messages on hyper-terminal are lacks of "CR" character. Most messages in u-boot is only ends with "\n".
How to let printf() automatically add "\r" at the end of messages?

Thanks.
Wayne

#1 lore raw
Quoted 2 lines · In message <[email protected]> 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.

Quoted 1 line

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

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

Quoted 1 line

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

Signature · 3 lines
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.