summaryrefslogtreecommitdiff
path: root/src/kernel/panic.h
diff options
context:
space:
mode:
authordzwdz2022-04-14 12:19:51 +0200
committerdzwdz2022-04-14 12:19:51 +0200
commit2eead2f6eab2aa1fbc727ce28d9fa9a8e90a1eec (patch)
treed4bb0ae50e5f612a4fae67763414f72ea1a85b8a /src/kernel/panic.h
parentdcb2ce6337f54a9821e3971976a07e767846e3c1 (diff)
kernel: port init's `printf` implementation
Diffstat (limited to 'src/kernel/panic.h')
-rw-r--r--src/kernel/panic.h6
1 files changed, 3 insertions, 3 deletions
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 <kernel/util.h>
#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)