PebbleOS
Loading...
Searching...
No Matches
Macros | Functions
Library logging

Logging hooks of the utility library. More...

Macros

#define UTIL_LOG(string)
 Log a message with the current file name and line.
 

Functions

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.
 

Detailed Description

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.

Macro Definition Documentation

◆ 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
stringMessage.

Function Documentation

◆ util_dbgserial_str()

void util_dbgserial_str ( const char *  string)

Write a line straight to the debug serial port.

Parameters
stringLine, without line terminator.

◆ util_log()

void util_log ( const char *  filename,
int  line,
const char *  string 
)

Log a message.

Parameters
filenameSource file name.
lineSource line number.
stringMessage.