diff options
Diffstat (limited to 'src/kernel/system.c')
-rw-r--r-- | src/kernel/system.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/kernel/system.c b/src/kernel/system.c index 179b2a2..ada1750 100644 --- a/src/kernel/system.c +++ b/src/kernel/system.c @@ -89,9 +89,7 @@ void panic(char *msg) asm ("cli"); vesa_set_color(vesa_dark_red); kernel_time(); - serial_write("\nPANIC: "); - serial_write(msg); - serial_write(" - System halted!\n"); + serial_printf("PANIC: %s - System halted!", msg); printf("PANIC: %s - System halted!\n", msg); halt_loop(); } @@ -105,7 +103,7 @@ void assert(int x) void halt_loop() { - serial_write("\n!!! HALT !!!\n"); + serial_printf("\n!!! HALT !!!"); asm ("cli"); loop: asm ("hlt"); |