Browse Source

print: Add '\r' whenever '\n' appears for actual serial consoles

Aaron Lindsay 7 years ago
parent
commit
375ef2eddf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      kernel/print.c

+ 2 - 0
kernel/print.c

@@ -122,6 +122,8 @@ int print(char *fmt, ...) {
122 122
 			}
123 123
 		} else {
124 124
 			putc(*c);
125
+			if (*c == '\n')
126
+				putc('\r');
125 127
 		}
126 128
 	}
127 129
 	va_end(arg);