From c3e50e6a2101afeadca9568481b6ed4395ae560b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 26 May 2024 23:42:50 -0400 Subject: kernel: Fixup logging to work with syslog changes This commit removes the KINFO(), KERR(), ... macros Signed-off-by: Ian Moffett --- sys/include/lib/logo.h | 6 +++--- sys/include/sys/syslog.h | 16 +--------------- 2 files changed, 4 insertions(+), 18 deletions(-) (limited to 'sys/include') diff --git a/sys/include/lib/logo.h b/sys/include/lib/logo.h index d3ba04a..c33d3d2 100644 --- a/sys/include/lib/logo.h +++ b/sys/include/lib/logo.h @@ -32,8 +32,8 @@ #define COPYRIGHT "Copyright (c) 2023-2024 Ian Marco Moffett and the Osmora Team." -#define PRINT_LOGO() \ - kprintf("%s v%s\n\n", g_logo, HYRA_VERSION); \ - kprintf("\t%s\n\n", COPYRIGHT); +#define PRINT_LOGO() \ + kprintf(OMIT_TIMESTAMP "%s v%s\n\n", g_logo, HYRA_VERSION); \ + kprintf(OMIT_TIMESTAMP "\t%s\n\n", COPYRIGHT); extern uint8_t g_logo[]; diff --git a/sys/include/sys/syslog.h b/sys/include/sys/syslog.h index 12febbc..18948ee 100644 --- a/sys/include/sys/syslog.h +++ b/sys/include/sys/syslog.h @@ -40,21 +40,7 @@ #if defined(_KERNEL) -#define KINFO(...) \ - kprintf("%s[info]: ", __THIS_MODULE); \ - kprintf(__VA_ARGS__); - -#define KWARN(...) \ - kprintf("%s[WARN]: ", __THIS_MODULE); \ - kprintf(__VA_ARGS__); - -#define KDEBUG(...) \ - kprintf("%s[debug]: ", __THIS_MODULE); \ - kprintf(__VA_ARGS__); - -#define KERR(...) \ - kprintf("%s[ERROR]: ", __THIS_MODULE); \ - kprintf(__VA_ARGS__); +#define OMIT_TIMESTAMP "\x01" void syslog_init(void); void syslog_init_proc(void); -- cgit v1.2.3