Go to the source code of this file.
|
#define | LOGLEVEL ERROR |
|
#define | DEBUG(lvl, fmt, ...) if (LOGLEVEL >= lvl) { printf("\e[35m%s\e[0m:\e[31m%d\e[0m: " "\e[%dm" fmt "\e[0m", __FILE__, __LINE__, debug_color[lvl], ##__VA_ARGS__);} |
|
#define | PANIC(fmt, ...) { DEBUG(ERROR,fmt "\n", ##__VA_ARGS__); for(;;); } |
|
◆ DEBUG
#define DEBUG |
( |
|
lvl, |
|
|
|
fmt, |
|
|
|
... |
|
) |
| if (LOGLEVEL >= lvl) { printf("\e[35m%s\e[0m:\e[31m%d\e[0m: " "\e[%dm" fmt "\e[0m", __FILE__, __LINE__, debug_color[lvl], ##__VA_ARGS__);} |
◆ LOGLEVEL
◆ PANIC
#define PANIC |
( |
|
fmt, |
|
|
|
... |
|
) |
| { DEBUG(ERROR,fmt "\n", ##__VA_ARGS__); for(;;); } |
◆ loglevel_e
Enumerator |
---|
ERROR | |
WARNING | |
INFO | |
TRACE | |
◆ debug_color
Initial value:= {
}
Definition: armv7/boot/include/debug.h:38
Definition: armv7/boot/include/debug.h:38
Definition: armv7/boot/include/debug.h:38
Definition: armv7/boot/include/debug.h:38