diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-07-25 10:44:03 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-25 12:06:22 +1000 |
commit | 46c006f730df0b20500fde8dd495b94711eaa8ee (patch) | |
tree | 7401279925fd9c2f5cfbf1e7eee0393bb20d99d2 | |
parent | 9484d469fa9da4eb8089d82aa2c112c73e0cf50b (diff) | |
download | skiboot-46c006f730df0b20500fde8dd495b94711eaa8ee.zip skiboot-46c006f730df0b20500fde8dd495b94711eaa8ee.tar.gz skiboot-46c006f730df0b20500fde8dd495b94711eaa8ee.tar.bz2 |
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 <oohall@gmail.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
-rw-r--r-- | core/console.c | 4 |
1 files 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); } |