aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-26 23:42:50 -0400
committerIan Moffett <ian@osmora.org>2024-05-26 23:44:35 -0400
commitc3e50e6a2101afeadca9568481b6ed4395ae560b (patch)
tree96cd08853bdde8a77a6d89511502f2a72ec4ea61 /sys/include
parenta59842033c0a29f774f895278597c8fc8141f7ac (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/include')
-rw-r--r--sys/include/lib/logo.h6
-rw-r--r--sys/include/sys/syslog.h16
2 files changed, 4 insertions, 18 deletions
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);