feat: kprintf now goes into dedicated pseudo-dev rather than flooding the framebuffer
[lunaix-os.git] / lunaix-os / arch / i386 / exceptions / intr_routines.c
index 100df0ba2f84628321c4bb67031e98a6ca4d3807..33b33c8e92ef091abb3c29ae59d79a33f602b38f 100644 (file)
@@ -7,9 +7,8 @@
 #include <lunaix/spike.h>
 #include <lunaix/syslog.h>
 #include <lunaix/trace.h>
-#include <lunaix/tty/tty.h>
 
-#include <klibc/stdio.h>
+#include <klibc/strfmt.h>
 
 #include <sys/apic.h>
 #include <sys/i386_intr.h>
@@ -24,7 +23,7 @@ extern u32_t debug_resv;
 void
 __print_panic_msg(const char* msg, const isr_param* param)
 {
-    kprintf(KERROR "panic: %s\n", msg);
+    kprintf(KERROR "panic: %s", msg);
     trace_printstack_isr(param);
 }