From 46c006f730df0b20500fde8dd495b94711eaa8ee Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Mon, 25 Jul 2016 10:44:03 +1000 Subject: core/console: use char literals instead of numeric Save everyone a trip to asciitable.com. I realise everyone has probably memorised \n and friends, but THAT'S NOT THE POINT. Signed-off-by: Oliver O'Halloran Reviewed-by: Andrew Donnellan Signed-off-by: Stewart Smith --- core/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/console.c b/core/console.c index e851fcf..730ac24 100644 --- a/core/console.c +++ b/core/console.c @@ -258,8 +258,8 @@ ssize_t console_write(bool flush_to_drivers, const void *buf, size_t count) while(count--) { char c = *(cbuf++); - if (c == 10) - write_char(13); + if (c == '\n') + write_char('\r'); write_char(c); } -- cgit v1.1