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"
9 #define _LEVEL_DEBUG "3"
11 #define KINFO "\x1b" _LEVEL_INFO
12 #define KWARN "\x1b" _LEVEL_WARN
13 #define KERROR "\x1b" _LEVEL_ERROR
14 #define KDEBUG "\x1b" _LEVEL_DEBUG
16 #define LOG_MODULE(module) \
17 static void kprintf(const char* fmt, ...) \
20 va_start(args, fmt); \
21 __kprintf(module, fmt, args); \
26 __kprintf(const char* component, const char* fmt, va_list args);
29 kprint_hex(const void* buffer, unsigned int size);
32 kprint_panic(const char* fmt, ...);
35 kprint_dbg(const char* fmt, ...);
37 #endif /* __LUNAIX_SYSLOG_H */