9
0
Fork 0

console: Fix line endings

use \r\n instead of \n\r

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-08-04 14:22:45 +02:00
parent 7d27f77b6e
commit 0bf2410e85
1 changed files with 2 additions and 2 deletions

View File

@ -265,9 +265,9 @@ void console_putc(unsigned int ch, char c)
case CONSOLE_INIT_FULL:
for_each_console(cdev) {
if (cdev->f_active & ch) {
cdev->putc(cdev, c);
if (c == '\n')
cdev->putc(cdev, '\r');
cdev->putc(cdev, c);
}
}
return;
@ -302,9 +302,9 @@ void console_puts(unsigned int ch, const char *str)
{
const char *s = str;
while (*s) {
console_putc(ch, *s);
if (*s == '\n')
console_putc(ch, '\r');
console_putc(ch, *s);
s++;
}
}