Logging
Debugging/logging functions. More...
Modules |
|
Macros | |
Macros related to logging.
|
|
Functions |
|
void | gos_log (const char *fmt,...) |
Print formatted string to the log bus.
More...
|
|
void | gos_vlog (const char *fmt, va_list args) |
Print formatted string with variable arguments to the log bus.
More...
|
|
void | gos_write_log (const char *buffer, size_t buffer_len) |
Print string buffer to the log bus.
More...
|
|
void | gos_dump_buffer (const void *buffer, uint32_t length, const char *msg, gos_dump_flags_t flags) |
Dump a buffer to the log bus with specified formatting.
More...
|
|
Detailed Description
Debugging/logging functions.
Function Documentation
◆ gos_dump_buffer()
void gos_dump_buffer | ( | const void * |
buffer,
|
uint32_t |
length,
|
||
const char * |
msg,
|
||
gos_dump_flags_t |
flags
|
||
) |
Dump a buffer to the log bus with specified formatting.
- Parameters
-
buffer
Buffer to dump length
Length of buffer in bytes msg
Message to print with dump flags
Formatting of dump, see gos_dump_flags_t
◆ gos_log()
void gos_log | ( | const char * |
fmt,
|
...
|
|||
) |
Print formatted string to the log bus.
- Parameters
-
[in] fmt
printf format string
◆ gos_vlog()
void gos_vlog | ( | const char * |
fmt,
|
va_list |
args
|
||
) |
Print formatted string with variable arguments to the log bus.
- Parameters
-
[in] fmt
printf format string [in] args
Variable argument list
- Examples:
- demo/uart_blaster/uart_blaster.c .
◆ gos_write_log()
void gos_write_log | ( | const char * |
buffer,
|
size_t |
buffer_len
|
||
) |
Print string buffer to the log bus.
- Note
- The supplied buffer does NOT need to be a null-terminated.
- Parameters
-
[in] buffer
Buffer containing string to print to log bus [in] buffer_len
Length of string buffer in bytes