diff options
author | Ian Moffett <ian@osmora.org> | 2024-01-10 18:59:14 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-01-10 18:59:14 -0500 |
commit | b5b41fd97bce7255c45629d435d4d752d225874a (patch) | |
tree | 435f652363dd8d7f0cfda2e1dce6622feeee444a /sys/include | |
parent | 3de50c965376fa47e664f2f2701b339765763767 (diff) |
kernel: syslog: Add KWARN()
Add macro to facilitate kernel warning logs
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/syslog.h | 4 |
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__); |