提交 3f97fd85 编写于 作者: S Stefan Weil 提交者: Stefan Hajnoczi

qtest: Add missing GCC_FMT_ATTR

gcc reports an error when the code is compiled with -Wmissing-format-attribute.
Signed-off-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
上级 6cec29c4
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册