Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
fmtThe message string to log.argsAn 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
fmtis 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.