diff options
author | sigsegv7 <ian@vegaa.systems> | 2023-09-15 23:02:14 -0400 |
---|---|---|
committer | sigsegv7 <ian@vegaa.systems> | 2023-09-15 23:02:14 -0400 |
commit | 978c01caee421aeddb4fa32c934b4e51ab8133ed (patch) | |
tree | 57c29dc729fce30ede16c5c41650c00e1d744d7e /sys/include | |
parent | 70f860f211a59abdca8b0a11417b9781403fd647 (diff) |
kernel: syslog: Add KERR() macro
Signed-off-by: sigsegv7 <ian@vegaa.systems>
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 97e024c..3472514 100644 --- a/sys/include/sys/syslog.h +++ b/sys/include/sys/syslog.h @@ -42,6 +42,10 @@ kprintf("%s[debug]: ", __THIS_MODULE); \ kprintf(__VA_ARGS__); +#define KERR(...) \ + kprintf("%s[ERROR]: ", __THIS_MODULE); \ + kprintf(__VA_ARGS__); + void syslog_init(void); void kprintf(const char *fmt, ...); void vkprintf(const char *fmt, va_list *ap); |