qemumonitortestutils: Fix G_GNUC_PRINTF annotation of qemuMonitorTestAddErrorResponse()

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>
This commit is contained in:
Michal Privoznik 2024-06-05 15:50:28 +02:00
parent 86e511fafb
commit 7813d31446
2 changed files with 3 additions and 2 deletions

View File

@ -172,7 +172,7 @@ qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test,
}
int G_GNUC_PRINTF(2, 3)
int
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test, const char *errmsg, ...)
{
va_list msgargs;

View File

@ -52,7 +52,8 @@ qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item);
int
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test,
const char *errmsg,
...);
...)
G_GNUC_PRINTF(2, 3);
void
qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);