summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-03-31 17:11:31 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2012-04-03 09:34:34 +0100
commit3f97fd851cf7b16b822c2c366e02708070f713bb (patch)
tree32436a8fa04b42e7d5d6c11dad94fe0d71067f72
parent6cec29c4a0338bfd96dec42cce51c9c447facb23 (diff)
downloadqemu-3f97fd851cf7b16b822c2c366e02708070f713bb.tar.gz
qemu-3f97fd851cf7b16b822c2c366e02708070f713bb.tar.bz2
qemu-3f97fd851cf7b16b822c2c366e02708070f713bb.zip
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>
-rw-r--r--qtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/qtest.c b/qtest.c
index daeabb7c25..18afcd9cf1 100644
--- a/qtest.c
+++ b/qtest.c
@@ -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];