Kernel: Add red colors to kernel panics

This commit is contained in:
Bananymous 2022-12-13 00:57:13 +02:00
parent 5f75479861
commit 9c72f7255a
1 changed files with 2 additions and 2 deletions

View File

@ -9,9 +9,9 @@ namespace Kernel
__attribute__((__noreturn__))
static void panic(const char* message, Args... args)
{
kprint("Kernel panic: ");
kprint("\e[31mKernel panic: ");
kprint(message, args...);
kprint("\n");
kprint("\e[m\n");
asm volatile("cli; hlt");
__builtin_unreachable();
}