From 8b7968f7c4ac8c07cad6a1a0891d38cf239a2839 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 23 Sep 2010 21:28:05 +0200 Subject: Use GCC_FMT_ATTR (format checking) Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- hw/mips_fulong2e.c | 3 ++- hw/mips_malta.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'hw') diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 61ca9c4..df80ef6 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -76,7 +76,8 @@ static struct _loaderparams { const char *initrd_filename; } loaderparams; -static void prom_set(uint32_t* prom_buf, int index, const char *string, ...) +static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index, + const char *string, ...) { va_list ap; int32_t table_addr; diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 1cb7880..09690894 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -654,7 +654,8 @@ static void write_bootloader (CPUState *env, uint8_t *base, } -static void prom_set(uint32_t* prom_buf, int index, const char *string, ...) +static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index, + const char *string, ...) { va_list ap; int32_t table_addr; -- cgit v1.1