From 4019cf90cf58a16b05daa6ca68ec08a927d2962d Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 6 Jan 2024 17:44:56 +0100 Subject: [PATCH] kernel: Unify panic messages --- kernel/src/Log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/src/Log.cpp b/kernel/src/Log.cpp index 9c7baf64..34007c6a 100644 --- a/kernel/src/Log.cpp +++ b/kernel/src/Log.cpp @@ -151,9 +151,10 @@ static bool g_check_already_failed = false; if (!g_check_already_failed) { // Avoid endlessly failing when trying to report a failed check. g_check_already_failed = true; - kerrorln("KERNEL PANIC: Check failed at %s:%d, in %s: %s", location.file(), location.line(), + kerrorln("-- KERNEL PANIC: Check failed at %s:%d, in %s: %s --", location.file(), location.line(), location.function(), expr); CPU::print_stack_trace(); + kerrorln("-- END KERNEL PANIC --"); } CPU::efficient_halt(); }