From a1b41f955c3082ac6b05f578e2d9aa9e427a2271 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 23 May 2024 21:42:24 -0400 Subject: kernel: syslog: Add kernel message buffer This commit introduces the kernel message buffer and makes system messages no longer be written to the TTY after kernel init. The kernel message buffer can be read from /proc/kmsg Signed-off-by: Ian Moffett --- sys/include/sys/syslog.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/include') diff --git a/sys/include/sys/syslog.h b/sys/include/sys/syslog.h index 3015f6b..12febbc 100644 --- a/sys/include/sys/syslog.h +++ b/sys/include/sys/syslog.h @@ -34,6 +34,7 @@ #ifndef _SYS_SYSLOG_H_ #define _SYS_SYSLOG_H_ +#include #include #include @@ -56,10 +57,12 @@ kprintf(__VA_ARGS__); void syslog_init(void); +void syslog_init_proc(void); void kprintf(const char *fmt, ...); void vkprintf(const char *fmt, va_list *ap); extern struct vcons_screen g_syslog_screen; +extern bool g_syslog_use_tty; #endif /* defined(_KERNEL) */ -- cgit v1.2.3