The qemuMonitorTestAddErrorResponse() function is a printf-like
function. But the annotation was mistakenly done in .c file
instead of corresponding .h file rendering the annotation
ineffective. Move the annotation to the header file.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
}
-int G_GNUC_PRINTF(2, 3)
+int
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test, const char *errmsg, ...)
{
va_list msgargs;
int
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test,
const char *errmsg,
- ...);
+ ...)
+ G_GNUC_PRINTF(2, 3);
void
qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);