From: Ben Gras Date: Fri, 9 Mar 2007 15:45:35 +0000 (+0000) Subject: output CRLF instead of just LF to serial X-Git-Tag: v3.1.3~45 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=f4b7a16f7bb1c9d47a6ed6cea4cc0363a974b3e8;p=minix.git output CRLF instead of just LF to serial --- diff --git a/kernel/utility.c b/kernel/utility.c index 111fdea93..35ad32228 100755 --- a/kernel/utility.c +++ b/kernel/utility.c @@ -48,8 +48,12 @@ int c; /* character to append */ * to the output driver if an END_OF_KMESS is encountered. */ if (c != END_OF_KMESS) { - if (do_serial_debug) + if (do_serial_debug) { + if(c == '\n') + ser_putc('\r'); ser_putc(c); + + } kmess.km_buf[kmess.km_next] = c; /* put normal char in buffer */ if (kmess.km_size < KMESS_BUF_SIZE) kmess.km_size += 1;