qtest: Add missing GCC_FMT_ATTR

gcc reports an error when the code is compiled with -Wmissing-format-attribute.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Stefan Weil 2012-03-31 17:11:31 +02:00 committed by Stefan Hajnoczi
parent 6cec29c4a0
commit 3f97fd851c
1 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,8 @@ static void qtest_send_prefix(CharDriverState *chr)
tv.tv_sec, tv.tv_usec);
}
static void qtest_send(CharDriverState *chr, const char *fmt, ...)
static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr,
const char *fmt, ...)
{
va_list ap;
char buffer[1024];