hvmloader: In mk_dsdt, Use __attribute__ format.
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 28 Oct 2011 16:15:32 +0000 (17:15 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Fri, 28 Oct 2011 16:15:32 +0000 (17:15 +0100)
Use __attribute__((format(printf,..))) for the function _stmt to
prevent any mistake.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
tools/firmware/hvmloader/acpi/mk_dsdt.c

index ea3be143027842ccb190948475cb3e8b559547c6..0b52372a3e5fcc7a860d40d04552cb90ecaeebb1 100644 (file)
@@ -15,7 +15,8 @@ static void indent(void)
         printf("    ");
 }
 
-static void _stmt(const char *name, const char *fmt, ...)
+static __attribute__((format(printf, 2, 3)))
+void _stmt(const char *name, const char *fmt, ...)
 {
     va_list args;