Logging hooks of the utility library.
More...
|
| #define | UTIL_LOG(string) |
| | Log a message with the current file name and line.
|
| |
|
| void | util_log (const char *filename, int line, const char *string) |
| | Log a message.
|
| |
| void | util_dbgserial_str (const char *string) |
| | Write a line straight to the debug serial port.
|
| |
Logging hooks of the utility library.
The library provides weak implementations printing to stdout; the firmware overrides them to log at INFO level and to write to the debug serial port.
◆ UTIL_LOG
| #define UTIL_LOG |
( |
|
string | ) |
|
Value: do { \
util_log(__FILE_NAME__, __LINE__, string); \
} while (0)
Log a message with the current file name and line.
- Parameters
-
◆ util_dbgserial_str()
| void util_dbgserial_str |
( |
const char * |
string | ) |
|
Write a line straight to the debug serial port.
- Parameters
-
| string | Line, without line terminator. |
◆ util_log()
| void util_log |
( |
const char * |
filename, |
|
|
int |
line, |
|
|
const char * |
string |
|
) |
| |
Log a message.
- Parameters
-
| filename | Source file name. |
| line | Source line number. |
| string | Message. |