62#define LOG_LEVEL LOG_INFO
69#define LOG(level, ...) do { \
70 _Pragma("clang diagnostic push") \
71 _Pragma("clang diagnostic ignored \"-Wtautological-compare\"") \
72 if ((level) <= LOG_LEVEL) log_write((level), __VA_ARGS__); } while (0U) \
73 _Pragma("clang diagnostic pop")
75#define LOG(level, ...) do { \
76 if ((level) <= LOG_LEVEL) log_write((level), __VA_ARGS__); } while (0U)
83#define LOG_RIOT_ERROR(...) LOG(LOG_ERROR, __VA_ARGS__)
84#define LOG_RIOT_WARNING(...) LOG(LOG_WARNING, __VA_ARGS__)
85#define LOG_RIOT_INFO(...) LOG(LOG_INFO, __VA_ARGS__)
86#define LOG_RIOT_DEBUG(...) LOG(LOG_DEBUG, __VA_ARGS__)
92#define log_write(level, ...) printf(__VA_ARGS__)
@ LOG_ERROR
Error log level, will print only critical, non-recoverable errors like hardware initialization failur...
@ LOG_INFO
Informational log level, will print purely informational messages like successful system bootup,...
@ LOG_NONE
Lowest log level, will output nothing.
@ LOG_ALL
print everything
@ LOG_WARNING
Warning log level, will print warning messages for temporary errors.
@ LOG_DEBUG
Debug log level, printing developer stuff considered too verbose for production use.
stdio wrapper to extend the C libs stdio