summaryrefslogtreecommitdiffstats
path: root/common/console.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-08-04 14:22:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-08-13 10:43:12 +0200
commit0bf2410e8559fa64489876c67dbba32ccf16e415 (patch)
tree66f10cf869c5147069b02630eb4664c6eeef167d /common/console.c
parent7d27f77b6ea0378b4a1cac0c6560661861a0b8ab (diff)
downloadbarebox-0bf2410e8559fa64489876c67dbba32ccf16e415.tar.gz
barebox-0bf2410e8559fa64489876c67dbba32ccf16e415.tar.xz
console: Fix line endings
use \r\n instead of \n\r Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console.c')
-rw-r--r--common/console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/console.c b/common/console.c
index 5036c26e1a..3c3c4176ce 100644
--- a/common/console.c
+++ b/common/console.c
@@ -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++;
}
}