From eae487678c645956a77ef9fd013925a97fca63fe Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Wed, 21 Aug 2024 01:39:38 -0400 Subject: [PATCH] stdio: add line feed on new line --- lib/stdio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/stdio.c b/lib/stdio.c index a1b6985..87ddd87 100644 --- a/lib/stdio.c +++ b/lib/stdio.c @@ -9,6 +9,8 @@ spinlock_t printf_lock = 0; static inline void printf_out(char c) { + if(c == '\n') + serial_putchar('\r'); serial_putchar(c); }