Log_Debug Function
Header: #include <applibs/log.h>
Logs and formats a debug message with printf formatting supported by the implementation of printf() included in Azure Sphere. Formatting may differ from the GNU C library as documented in the MUSL wiki. You must provide an additional parameter for every argument specification defined in the fmt
string. This function is thread safe.
int Log_Debug(const char * fmt, ...);
Parameters
fmt
The message string to log, with optional argument specifications.
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 in the case of failure, in which case errno
is set to the error.