Debugging

Debugging/logging functions. More...

Modules

Macros
Macros related to debugging.
 

Functions

void zn_log (const char *fmt,...)
 Print formatted string to the log bus. More...
 
void zn_vlog (const char *fmt, va_list args)
 Print formatted string with variable arguments to the log bus. More...
 
void zn_log_with_buffer (const char *string_buffer, size_t buffer_len)
 Print string buffer to the log bus. More...
 
void zn_dump_buffer (const void *buffer, uint32_t length, const char *msg, uint32_t flags)
 Dump a buffer to the log bus with specified formatting. More...
 

Detailed Description

Debugging/logging functions.

Function Documentation

void zn_dump_buffer ( const void *  buffer,
uint32_t  length,
const char *  msg,
uint32_t  flags 
)
void zn_log ( const char *  fmt,
  ... 
)

Print formatted string to the log bus.

Parameters
[in]fmtprintf format string
void zn_log_with_buffer ( const char *  string_buffer,
size_t  buffer_len 
)

Print string buffer to the log bus.

Parameters
[in]string_bufferBuffer contain string to print to log bus
[in]buffer_lenLength of string buffer in bytes
Examples:
basic/firmware_update/firmware_update.c, and cloud/cloud_filesystem/cloud_filesystem.c.
void zn_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