From 978c01caee421aeddb4fa32c934b4e51ab8133ed Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Fri, 15 Sep 2023 23:02:14 -0400 Subject: kernel: syslog: Add KERR() macro Signed-off-by: sigsegv7 --- sys/include/sys/syslog.h | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3