From 1227921ca34284032e76bfbfad4b5c2f82fd35e5 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 27 Aug 2020 22:32:33 +0200 Subject: [PATCH] Add more GCC_FMT_ATTR Signed-off-by: Stefan Weil --- tests/qtest/arm-cpu-features.c | 1 + tests/qtest/libqos/libqos-spapr.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/qtest/arm-cpu-features.c b/tests/qtest/arm-cpu-features.c index 77b5e30a9c..9708b81f01 100644 --- a/tests/qtest/arm-cpu-features.c +++ b/tests/qtest/arm-cpu-features.c @@ -47,6 +47,7 @@ static QDict *do_query_no_props(QTestState *qts, const char *cpu_type) QUERY_TAIL, cpu_type); } +GCC_FMT_ATTR(3, 4) static QDict *do_query(QTestState *qts, const char *cpu_type, const char *fmt, ...) { diff --git a/tests/qtest/libqos/libqos-spapr.h b/tests/qtest/libqos/libqos-spapr.h index c61338917a..7647c6c8fe 100644 --- a/tests/qtest/libqos/libqos-spapr.h +++ b/tests/qtest/libqos/libqos-spapr.h @@ -3,8 +3,8 @@ #include "libqos.h" -QOSState *qtest_spapr_vboot(const char *cmdline_fmt, va_list ap); -QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...); +QOSState *qtest_spapr_vboot(const char *cmdline_fmt, va_list ap) GCC_FMT_ATTR(1, 0); +QOSState *qtest_spapr_boot(const char *cmdline_fmt, ...) GCC_FMT_ATTR(1, 2); void qtest_spapr_shutdown(QOSState *qs); /* List of capabilities needed to silence warnings with TCG */ -- 2.11.4.GIT