summaryrefslogtreecommitdiff
path: root/sys/kern/kern_syslog.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-12 19:38:59 -0400
committerIan Moffett <ian@osmora.org>2024-05-12 19:38:59 -0400
commitdc213e49d5c0ecc4de7939b57bd84b09f5d1318a (patch)
tree135ccd4711fcaa2c1a2bc93a69b76db1e8deff69 /sys/kern/kern_syslog.c
parentb7b4b42f19edcdc751688b691ad985d2e6fd91ff (diff)
kernel: tty: Add initial TTY code
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syslog.c')
-rw-r--r--sys/kern/kern_syslog.c5
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