From 2eead2f6eab2aa1fbc727ce28d9fa9a8e90a1eec Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 14 Apr 2022 12:19:51 +0200 Subject: kernel: port init's `printf` implementation --- src/kernel/panic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/panic.h') diff --git a/src/kernel/panic.h b/src/kernel/panic.h index 738bff3..c4cd194 100644 --- a/src/kernel/panic.h +++ b/src/kernel/panic.h @@ -3,9 +3,9 @@ #include #define _panic(type) do { \ - tty_const(" an "type" PANIC! at the "); \ - tty_const(__func__); \ - tty_const(" (" __FILE__ ":" NUM2STR(__LINE__) ") "); \ + kprintf(" an "type" PANIC! at the "); \ + kprintf(__func__); \ + kprintf(" (" __FILE__ ":" NUM2STR(__LINE__) ") "); \ halt_cpu(); \ } while (0) -- cgit v1.2.3