Log_DebugVarArgs Function
Header: #include <applibs/log.h>
Logs and formats a debug message with vprintf formatting. This function is thread safe.
The args
va_list parameter should be initialized with va_start before this function is called, and should be cleaned up by calling va_end afterwards. The caller needs to provide an additional parameter for every argument specification defined in the fmt
string.
int Log_DebugVarArgs(const char * fmt, va_list args);
Parameters
fmt
The message string to log.args
An argument list that has been initialized with va_start.
Errors
Returns -1 if an error is encountered and sets errno
to the error value.
- EFAULT: the
fmt
is NULL.
Any other errno
may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.
Return value
Returns 0 for success, or -1 for failure, in which case errno
is set to the error value.