summaryrefslogtreecommitdiff
path: root/kern/panic.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-04-29 21:52:54 +0200
committerRichard Braun <rbraun@sceen.net>2017-04-29 21:52:54 +0200
commitd78a948f0a1d8b7b3385944c736d7cffd8ca67a7 (patch)
tree73f5b4b37b73311d768670f1838688dd4505d47a /kern/panic.c
parent6ba94ce79c8477758dd440d3563ffd4dd88883df (diff)
kern/printk: rename to printf
The printk functions are close enough to the printf ones to bear the same names.
Diffstat (limited to 'kern/panic.c')
-rw-r--r--kern/panic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kern/panic.c b/kern/panic.c
index a9599f26..470c4212 100644
--- a/kern/panic.c
+++ b/kern/panic.c
@@ -19,7 +19,7 @@
#include <kern/atomic.h>
#include <kern/panic.h>
-#include <kern/printk.h>
+#include <kern/printf.h>
#include <machine/cpu.h>
#include <machine/strace.h>
@@ -42,10 +42,10 @@ panic(const char *format, ...)
cpu_intr_disable();
cpu_halt_broadcast();
- printk("\npanic: ");
+ printf("\npanic: ");
va_start(list, format);
- vprintk(format, list);
- printk("\n");
+ vprintf(format, list);
+ printf("\n");
strace_dump();
cpu_halt();