]> Zhao Yanbai Git Server - minix.git/commitdiff
output CRLF instead of just LF to serial
authorBen Gras <ben@minix3.org>
Fri, 9 Mar 2007 15:45:35 +0000 (15:45 +0000)
committerBen Gras <ben@minix3.org>
Fri, 9 Mar 2007 15:45:35 +0000 (15:45 +0000)
kernel/utility.c

index 111fdea9385f84e2232574c8cad153be4ccd8acd..35ad322283aaa9dbb72faf1b9e409b9cf12d805e 100755 (executable)
@@ -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;