Utility macros and functions for outputting log messages.
|
| #define | MM_X64_VAL(value) ((uint32_t)(value >> 32)), ((uint32_t)value) |
| | Macro for printing a uint64_t as two separate uint32_t values. More...
|
| |
| #define | MM_X64_FMT "%08lx%08lx" |
| | Macro for format specifier to print MM_X64_VAL. More...
|
| |
| #define | MM_MAC_ADDR_VAL(value) ((value)[0]), ((value)[1]), ((value)[2]), ((value)[3]), ((value)[4]), ((value)[5]) |
| | Macro for printing a MAC address. More...
|
| |
| #define | MM_MAC_ADDR_FMT "%02x:%02x:%02x:%02x:%02x:%02x" |
| | Macro for format specifier to print MM_MAC_ADDR_VAL. More...
|
| |
| #define | MMLOG_LEVEL MMLOG_LEVEL_ERR |
| | The selected log level. More...
|
| |
| #define | MMLOG_LEVEL_INVALID (0) |
| | Invalid log level. More...
|
| |
| #define | MMLOG_LEVEL_OFF (1) |
| | Logging disabled. More...
|
| |
| #define | MMLOG_LEVEL_APP (2) |
| | Special log level for always on "application" log messages. More...
|
| |
| #define | MMLOG_LEVEL_ERR (3) |
| | Application and error messages only. More...
|
| |
| #define | MMLOG_LEVEL_WRN (4) |
| | Application, error and warning messages only. More...
|
| |
| #define | MMLOG_LEVEL_INF (5) |
| | Application, error, warning, and info messages. More...
|
| |
| #define | MMLOG_LEVEL_DBG (6) |
| | Application, error, warning, info, and debug messages. More...
|
| |
| #define | MMLOG_LEVEL_VRB (7) |
| | Application, error, warning, info, and debug messages, plus additional verbose messages. More...
|
| |
| #define | MMLOG_COLOR_RED (31) |
| | ANSI color code: red. More...
|
| |
| #define | MMLOG_COLOR_GREEN (32) |
| | ANSI color code: green. More...
|
| |
| #define | MMLOG_COLOR_ORANGE (33) |
| | ANSI color code: orange. More...
|
| |
| #define | MMLOG_COLOR_BLUE (34) |
| | ANSI color code: blue. More...
|
| |
| #define | MMLOG_COLOR_PURPLE (35) |
| | ANSI color code: purple. More...
|
| |
| #define | MMLOG_COLOR_CYAN (36) |
| | ANSI color code: cyan. More...
|
| |
| #define | MMLOG_COLOR_LIGHT_GRAY (37) |
| | ANSI color code: light gray. More...
|
| |
| #define | MMLOG_PREFIX_FMT "%c %8lu %s %s[%d] " |
| | Log line prefix format string (log levels other than APP). More...
|
| |
| #define | MMLOG_PREFIX_ARGS lvl, mmosal_get_time_ms(), short_task_name, __func__, __LINE__ |
| | Log line prefix arguments (log levels other than APP). More...
|
| |
| #define | MMLOG_SUFFIX_FMT |
| | Log line suffix format string (log levels other than APP). More...
|
| |
| #define | MMLOG_APP_PREFIX_FMT " %8lu " |
| | Log line prefix format string (APP log level). More...
|
| |
| #define | MMLOG_APP_PREFIX_ARGS mmosal_get_time_ms() |
| | Log line prefix arguments (APP log level). More...
|
| |
| #define | MMLOG_APP_SUFFIX_FMT |
| | Log line suffix format string (APP log level). More...
|
| |
| #define | MMLOG_PRINTF(...) mmosal_printf(__VA_ARGS__) |
| | Logging printf definition. More...
|
| |
| #define | MMLOG_APP(fmt, ...) |
| | Display an APP level log message. More...
|
| |
| #define | MMLOG(fmt, _col, _lvl, ...) |
| | Generic logging macro. More...
|
| |
| #define | MMLOG_ERR(fmt, ...) MMLOG(fmt, MMLOG_COLOR_RED, 'E', ##__VA_ARGS__) |
| | Display an ERROR level log message. More...
|
| |
| #define | MMLOG_DUMP_ERR(title, buf, len) mm_hexdump('E', __func__, __LINE__, (title), (buf), (len)) |
| | Dump the given buffer if ERROR level logging is enabled. More...
|
| |
| #define | MMLOG_WRN(fmt, ...) printf_blackhole(fmt, ##__VA_ARGS__) |
| | Display an WARNING level log message. More...
|
| |
| #define | MMLOG_DUMP_WRN(title, buf, len) mm_hexdump_blackhole(title, buf, len) |
| | Dump the given buffer if WARNING level logging is enabled. More...
|
| |
| #define | MMLOG_INF(fmt, ...) printf_blackhole(fmt, ##__VA_ARGS__) |
| | Display an INFO level log message. More...
|
| |
| #define | MMLOG_DUMP_INF(title, buf, len) mm_hexdump_blackhole(title, buf, len) |
| | Dump the given buffer if INFO level logging is enabled. More...
|
| |
| #define | MMLOG_DBG(fmt, ...) printf_blackhole(fmt, ##__VA_ARGS__) |
| | Display an DEBUG level log message. More...
|
| |
| #define | MMLOG_DUMP_DBG(title, buf, len) mm_hexdump_blackhole(title, buf, len) |
| | Dump the given buffer if DEBUG level logging is enabled. More...
|
| |
| #define | MMLOG_VRB(fmt, ...) printf_blackhole(fmt, ##__VA_ARGS__) |
| | Display an VERBOSE level log message. More...
|
| |
| #define | MMLOG_DUMP_VRB(title, buf, len) mm_hexdump_blackhole(title, buf, len) |
| | Dump the given buffer if VERBOSE level logging is enabled. More...
|
| |