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:
parent
7d27f77b6e
commit
0bf2410e85
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue