Logging macros and runtime assertion.
Macros | |
| #define | BSP_ASSERT(cond, msg) |
| Assert a condition. Prints message and halts on failure. | |
| #define | LOG_INFO(mod, fmt, ...) |
| Log an informational message (green). | |
| #define | LOG_WARN(mod, fmt, ...) |
| Log a warning message (yellow). | |
| #define | LOG_ERR(mod, fmt, ...) |
| Log an error message (red). | |
| #define BSP_ASSERT | ( | cond, | |
| msg ) |
#include <debug.h>
Assert a condition. Prints message and halts on failure.
| cond | Condition to evaluate. |
| msg | Null-terminated string to print on failure. |
| #define LOG_ERR | ( | mod, | |
| fmt, | |||
| ... ) |
#include <debug.h>
Log an error message (red).
| mod | Module flag — see Debug Modules. |
| fmt | Printf-style format string. |
| ... | Format arguments. |
| #define LOG_INFO | ( | mod, | |
| fmt, | |||
| ... ) |
#include <debug.h>
Log an informational message (green).
| mod | Module flag — see Debug Modules. |
| fmt | Printf-style format string. |
| ... | Format arguments. |
| #define LOG_WARN | ( | mod, | |
| fmt, | |||
| ... ) |
#include <debug.h>
Log a warning message (yellow).
| mod | Module flag — see Debug Modules. |
| fmt | Printf-style format string. |
| ... | Format arguments. |