Logging hooks of the utility library.
More...
|
| #define | PBL_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.
|
| |
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.
◆ PBL_UTIL_LOG
| #define PBL_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_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. |