From ab64b48ed4b4e0e80e5aaf7325c5c6092ab495be Mon Sep 17 00:00:00 2001
From: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Date: Fri, 29 Nov 2013 15:59:41 +0100
Subject: [PATCH] vfs: end message printed by sys_panic() with new line

Looks like the serial console doesn't display anything
until new line character is received.

Looks like only when '\n' is written to the serial console
QEMU displays the line.

Signed-off-by: Tomasz Grabiec <tgrabiec@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
---
 fs/vfs/main.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/vfs/main.cc b/fs/vfs/main.cc
index 9dd9540c5..785369f3b 100644
--- a/fs/vfs/main.cc
+++ b/fs/vfs/main.cc
@@ -1607,7 +1607,7 @@ vfs_init(void)
 
 void sys_panic(const char *str)
 {
-	kprintf("%s", str);
+	kprintf("%s\n", str);
 	while (1)
 		;
 }
-- 
GitLab