Log a printf-style string in a slog2 buffer
#include <slog2.h>
int slog2f( slog2_buffer_t buffer,
uint16_t code,
uint8_t severity,
const char* format, ... );
For more information, see the entry for slog2_register().
The slog2f() function logs a printf-style ASCII-text string in the specified slog2 buffer.
The vslog2f() function is an alternate form in which the arguments have already been captured using the variable-length argument facilities of <stdarg.h>.
0 on success, or -1 if an error occurred.
See slog2_register().
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | Read the Caveats |
| Signal handler | Yes |
| Thread | Yes |
Don't use double or float arguments in an interrupt handler, unless your code is compiled to use software floating-point emulation.