qh_log()

QNX SDP8.0QNX Helpers Developer's GuideAPIDeveloper

A macro that logs a message along with the originating filename and line number

Synopsis:

#include <qh/log.h>
#define qh_log(severity,
               ...)

Arguments:

severity
The QH_LOG_SEVERITY_* severity level for this log message. Optionally, can be combined with QH_LOG_DEST_*, QH_LOG_NO_DEST_*, or both when specific messages also need to add or block destinations.

Library:

qh

Description:

This macro is thread safe and guarantees that errno is the same when it returns as it was on entry.

The fmt parameter is omitted from the macro signature to prevent the compile-time warnings that occur when you use the -Wpedantic GCC option and there are no variable arguments in the macro.

For formatting parameters, see printf().

Returns:

EOK on success or a standard errno on failure. errno is unmodified.

Page updated: