Macros | |
| #define | MTB_PMBUS_LOG_ERR(_fmt, ...) |
| Logs an error message. | |
| #define | MTB_PMBUS_LOG_WRN(_fmt, ...) |
| Logs a warning message. | |
| #define | MTB_PMBUS_LOG_INF(_fmt, ...) |
| Logs an informational message. | |
| #define | MTB_PMBUS_LOG_DBG(_fmt, ...) |
| Logs a debug message. | |
| #define | MTB_PMBUS_LOG_LEVEL_OFF 0U |
| Logging is disabled (default) | |
| #define | MTB_PMBUS_LOG_LEVEL_ERROR 1U |
| Logs only error messages. | |
| #define | MTB_PMBUS_LOG_LEVEL_WARNING 2U |
| Logs only error, warning messages. | |
| #define | MTB_PMBUS_LOG_LEVEL_INFO 3U |
| Logs error, warning, and info messages. | |
| #define | MTB_PMBUS_LOG_LEVEL_DEBUG 4U |
| Logs all messages (including debug) | |
| #define MTB_PMBUS_LOG_ERR | ( | _fmt, | |
| ... ) |
Logs an error message.
Active when MTB_PMBUS_LOG_LEVEL >= MTB_PMBUS_LOG_LEVEL_ERROR.
| _fmt | printf-style format string |
| ... | Optional arguments for the format string |
| #define MTB_PMBUS_LOG_WRN | ( | _fmt, | |
| ... ) |
Logs a warning message.
Active when MTB_PMBUS_LOG_LEVEL >= MTB_PMBUS_LOG_LEVEL_WARNING.
| _fmt | printf-style format string |
| ... | Optional arguments for the format string |
| #define MTB_PMBUS_LOG_INF | ( | _fmt, | |
| ... ) |
Logs an informational message.
Active when MTB_PMBUS_LOG_LEVEL >= MTB_PMBUS_LOG_LEVEL_INFO.
| _fmt | printf-style format string |
| ... | Optional arguments for the format string |
| #define MTB_PMBUS_LOG_DBG | ( | _fmt, | |
| ... ) |
Logs a debug message.
Active when MTB_PMBUS_LOG_LEVEL >= MTB_PMBUS_LOG_LEVEL_DEBUG.
| _fmt | printf-style format string |
| ... | Optional arguments for the format string |