kernel: Unify panic messages

This commit is contained in:
apio 2024-01-06 17:44:56 +01:00
parent 1f2f676ea4
commit 4019cf90cf
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -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();
}