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

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

In message 426f8deb.37a2553d.0897.fffffb13@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
participants (2)
-
wnlee1109@gmail.com
-
Wolfgang Denk