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
bufferBuffer to dump
lengthLength of buffer in bytes
msgMessage to print with dump
flagsFormatting of dump, see gos_dump_flags_t

◆ gos_log()

void gos_log ( const char *  fmt,
  ... 
)

Print formatted string to the log bus.

Parameters
[in]fmtprintf 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]fmtprintf format string
[in]argsVariable argument list

◆ 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]bufferBuffer containing string to print to log bus
[in]buffer_lenLength of string buffer in bytes