Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

ado_debug()

Send a debugging string to slogger for logging

Synopsis:

#include <audio_driver.h>

void ado_debug( uint32_t lvl,
                char *format,
                ... );

Arguments:

lvl
The debugging level. If the global variable db_lvl logically ANDed with lvl is true, ado_debug() sends the debugging string to the system logger.

The db_lvl global variable is set based on the -v[v...] option to io-audio.

format
A formatting string, similar to that used by printf().
...
Additional arguments, as required by the format string.

Description:

The ado_debug() sends a debugging string to slogger for logging.

If ADO_DEBUG is defined, these messages are also sent to standard output. For more information, see Debugging an audio driver in the Organization of a Driver chapter.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

ado_error()

io-audio, slogger in the QNX Utilities Reference

printf() in the QNX Library Reference