diff options
Diffstat (limited to 'sys/kern/kern_syslog.c')
-rw-r--r-- | sys/kern/kern_syslog.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/kern_syslog.c b/sys/kern/kern_syslog.c index fe996e4..6f2852a 100644 --- a/sys/kern/kern_syslog.c +++ b/sys/kern/kern_syslog.c @@ -29,6 +29,7 @@ #include <sys/syslog.h> #include <sys/machdep.h> +#include <sys/tty.h> #include <dev/vcons/vcons.h> #include <string.h> @@ -44,8 +45,10 @@ syslog_write(const char *s, size_t len) #if defined(__SERIAL_DEBUG) serial_dbgch(*tmp_s); #endif /* defined(__SERIAL_DEBUG) */ - vcons_putch(&g_syslog_screen, *tmp_s++); + tty_putc(&g_root_tty, *tmp_s++); } + + tty_flush(&g_root_tty); } void |