[prev in list] [next in list] [prev in thread] [next in thread] 

List:       u-boot
Subject:    [U-Boot-Users] how to add CR to printf message automatically?
From:       wd () denx ! de (Wolfgang Denk)
Date:       2005-04-27 13:18:55
Message-ID: 20050427131900.E15FDC1510 () atlas ! denx ! de
[Download RAW message or body]

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.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic