i965/disasm: Mark format() as being printf-style.

This allows us to get warnings from GCC when we mess up the format
strings.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Chris Forbes 2015-03-14 07:10:10 +13:00
parent 97399fc751
commit 7c3095d6b7

View file

@ -596,6 +596,9 @@ string(FILE *file, const char *string)
return 0;
}
static int
format(FILE *f, const char *format, ...) PRINTFLIKE(2, 3);
static int
format(FILE *f, const char *format, ...)
{