kernel: Unify panic messages
This commit is contained in:
parent
1f2f676ea4
commit
4019cf90cf
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user