qh_log_noloc()

Updated: April 19, 2023

A macro that logs a message without any associated location information

Synopsis:

#include <qh/log.h>
#define qh_log_noloc(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.