1 #ifndef __LUNAIX_SYSLOG_H
2 #define __LUNAIX_SYSLOG_H
6 #define _LEVEL_INFO "0"
7 #define _LEVEL_WARN "1"
8 #define _LEVEL_ERROR "2"
10 #define KINFO "\x1b" _LEVEL_INFO
11 #define KWARN "\x1b" _LEVEL_WARN
12 #define KERROR "\x1b" _LEVEL_ERROR
14 #define LOG_MODULE(module) \
15 static void kprintf(const char* fmt, ...) { \
17 va_start(args, fmt); \
18 __kprintf(module, fmt, args); \
23 __kprintf(const char* component, const char* fmt, va_list args);
27 kprint_panic(const char* fmt, ...);
29 #endif /* __LUNAIX_SYSLOG_H */