diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-03-31 17:11:31 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2012-04-03 09:34:34 +0100 |
commit | 3f97fd851cf7b16b822c2c366e02708070f713bb (patch) | |
tree | 32436a8fa04b42e7d5d6c11dad94fe0d71067f72 | |
parent | 6cec29c4a0338bfd96dec42cce51c9c447facb23 (diff) | |
download | qemu-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]; |