aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-01-10 18:59:14 -0500
committerIan Moffett <ian@osmora.org>2024-01-10 18:59:14 -0500
commitb5b41fd97bce7255c45629d435d4d752d225874a (patch)
tree435f652363dd8d7f0cfda2e1dce6622feeee444a /sys
parent3de50c965376fa47e664f2f2701b339765763767 (diff)
kernel: syslog: Add KWARN()
Add macro to facilitate kernel warning logs Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/include/sys/syslog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/include/sys/syslog.h b/sys/include/sys/syslog.h
index 344ba0f..7706eec 100644
--- a/sys/include/sys/syslog.h
+++ b/sys/include/sys/syslog.h
@@ -42,6 +42,10 @@
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__);