acpi: specify format for build_append_namestring
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 10 Mar 2015 17:13:15 +0000 (18:13 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 11 Mar 2015 17:24:29 +0000 (18:24 +0100)
Will catch users if we misused it.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
hw/acpi/aml-build.c

index ace180b685cadaab806a0d6e07722c23c70bc579..6242908d6cd8d7228be8f797b0b45f22155b79f2 100644 (file)
@@ -141,6 +141,7 @@ build_append_namestringv(GArray *array, const char *format, va_list ap)
     g_strfreev(segs);
 }
 
+GCC_FMT_ATTR(2, 3)
 static void build_append_namestring(GArray *array, const char *format, ...)
 {
     va_list ap;