Convert '\n' to '\r\n' on debug serial output.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 21 Jun 2008 16:59:19 +0000 (12:59 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 21 Jun 2008 16:59:19 +0000 (12:59 -0400)
src/output.c

index dd647a26e63f4cb0e68ad71b28f79140b388efb3..6d4767baac3183ae88c87d56d6b97299f81d0abb 100644 (file)
@@ -61,9 +61,12 @@ putc(u16 action, char c)
         if (! CONFIG_COREBOOT)
             // Send character to debug port.
             outb(c, PORT_BIOS_DEBUG);
-        if (CONFIG_DEBUG_SERIAL)
+        if (CONFIG_DEBUG_SERIAL) {
             // Send character to serial port.
+            if (c == '\n')
+                debug_serial('\r');
             debug_serial(c);
+        }
     }
 
     if (action) {