29#ifdef MODULE_LOG_PRINTFNOFORMAT
31static inline void log_write(
unsigned level,
const char *format, ...) {
38#define log_write(level, ...) \
40 if (level == LOG_ERROR) { \
41 LOG_TAG(LOG_ERROR, E, __func__, ##__VA_ARGS__); \
43 else if (level == LOG_WARNING) { \
44 LOG_TAG(LOG_WARNING, W, __func__, ##__VA_ARGS__); \
46 else if (level == LOG_INFO) { \
47 LOG_TAG(LOG_INFO, D, __func__, ##__VA_ARGS__); \
49 else if (level == LOG_DEBUG) { \
50 LOG_TAG(LOG_DEBUG, E, __func__, ##__VA_ARGS__); \
#define log_write(level,...)
Default log_write function, just maps to printf.
Common log macros for ESP SoCs.
stdio wrapper to extend the C libs stdio