Add kdbg and kdbgln
This commit is contained in:
parent
9de9eacb1d
commit
1ab0f7291b
@ -2,6 +2,7 @@
|
||||
|
||||
enum class LogLevel
|
||||
{
|
||||
DEBUG,
|
||||
INFO,
|
||||
WARN,
|
||||
ERROR
|
||||
@ -21,6 +22,8 @@ namespace KernelLog
|
||||
#define kcommonlog(function, level, ...) KernelLog::function(MODULE, level, __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#define kdbg(...) kcommonlog(log, LogLevel::DEBUG, __VA_ARGS__)
|
||||
#define kdbgln(...) kcommonlog(logln, LogLevel::DEBUG, __VA_ARGS__)
|
||||
#define kinfo(...) kcommonlog(log, LogLevel::INFO, __VA_ARGS__)
|
||||
#define kinfoln(...) kcommonlog(logln, LogLevel::INFO, __VA_ARGS__)
|
||||
#define kwarn(...) kcommonlog(log, LogLevel::WARN, __VA_ARGS__)
|
||||
|
Loading…
Reference in New Issue
Block a user