* [U-Boot-Users] how to add CR to printf message automatically?
@ 2005-04-27 13:04 wnlee1109 at gmail.com
2005-04-27 13:18 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: wnlee1109 at gmail.com @ 2005-04-27 13:04 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot-Users] how to add CR to printf message automatically?
2005-04-27 13:04 [U-Boot-Users] how to add CR to printf message automatically? wnlee1109 at gmail.com
@ 2005-04-27 13:18 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-04-27 13:18 UTC (permalink / raw)
To: u-boot
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
--
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-27 13:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 13:04 [U-Boot-Users] how to add CR to printf message automatically? wnlee1109 at gmail.com
2005-04-27 13:18 ` Wolfgang Denk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.