GNUC_ATTRIBUTE((format(strftime, 3, 0)))
to the str_timestamp_format
I guessstr_timestamp_format
, not str_timestamp_ex
#pragama GCC diagnosticf ignored "-Wformat-nonliteral"
, apparently introduced by me GNUC_ATTRIBUTE
is still good to keep5
) when the format string indicates a string (%s
)dbg_msg
):
void dbg_msg(const char *sys, const char *fmt, ...)
GNUC_ATTRIBUTE((format(printf, 2, 3)));
dbg_msg
receives a format string in parameter 2, and the corresponding parameters in parameter 3 and onwardsprintf
in there means that it receives a format string that looks like a format string for printf