summaryrefslogtreecommitdiff
path: root/src/kernel/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/panic.c')
-rw-r--r--src/kernel/panic.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/panic.c b/src/kernel/panic.c
index e04ae38..7793065 100644
--- a/src/kernel/panic.c
+++ b/src/kernel/panic.c
@@ -1,12 +1,13 @@
#include "panic.h"
+#include "log.h"
#include "vga.h"
void panic(const char *message) {
vga_set_color(0x4f);
vga_blank();
- vga_printsz("Kernel panic: ");
- vga_printsz(message);
- vga_printsz("\nHalting.");
+ logsz("Kernel panic: ");
+ logsz(message);
+ logsz("\nHalting.");
while (1)
asm volatile ("hlt");
} \ No newline at end of file