diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-26 23:42:50 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-26 23:44:35 -0400 |
commit | c3e50e6a2101afeadca9568481b6ed4395ae560b (patch) | |
tree | 96cd08853bdde8a77a6d89511502f2a72ec4ea61 /sys/kern | |
parent | a59842033c0a29f774f895278597c8fc8141f7ac (diff) |
kernel: Fixup logging to work with syslog changes
This commit removes the KINFO(), KERR(), ... macros
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 6 | ||||
-rw-r--r-- | sys/kern/kern_exec.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_panic.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 5f5e8c3..847f4a6 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -48,11 +48,11 @@ static inline void log_timer(const char *purpose, tmrr_status_t s, const struct timer *tmr) { if (s == TMRR_EMPTY_ENTRY) { - KINFO("%s not yet registered\n", purpose); + kprintf("init_main: %s not yet registered\n", purpose); } else if (tmr->name == NULL) { - KINFO("Nameless %s registered; unknown\n", purpose); + kprintf("init_main: Nameless %s registered; unknown\n", purpose); } else { - KINFO("%s registered: %s\n", purpose, tmr->name); + kprintf("init_main: %s registered: %s\n", purpose, tmr->name); } } diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index c76179a..a1e97be 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -198,7 +198,7 @@ execv(char *pathname, char **argv, uintptr_t *sp_res) status = loader_load(td->addrsp, bin, &args.auxv, 0, NULL, exec_range); if (status != 0) { /* Well shit */ - KERR("Failed to load new process image\n"); + kprintf("exec: Failed to load new process image\n"); signal_raise(td, SIGSEGV); for (;;); } diff --git a/sys/kern/kern_panic.c b/sys/kern/kern_panic.c index 8b5fbb1..2adbcb9 100644 --- a/sys/kern/kern_panic.c +++ b/sys/kern/kern_panic.c @@ -54,7 +54,7 @@ panic(const char *fmt, ...) va_start(ap, fmt); - kprintf("panic: "); + kprintf(OMIT_TIMESTAMP "panic: "); vkprintf(fmt, &ap); machine_panic(); |