bionic: Correct \r at the end of puts()

Since puts() calls serial_putc() directly, it needs to supply its own
\r before \n.

Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
Sean Cross 2015-02-05 13:03:08 +08:00
parent f7207812b4
commit 977ccff309

View file

@ -345,6 +345,7 @@ void _msleep(uint32_t msecs)
int puts(const char *str) int puts(const char *str)
{ {
serial_puts(str); serial_puts(str);
serial_putc('\r');
serial_putc('\n'); serial_putc('\n');
return 1; return 1;
} }