diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-09-23 21:28:05 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-03 06:34:51 +0000 |
commit | 8b7968f7c4ac8c07cad6a1a0891d38cf239a2839 (patch) | |
tree | 4a061bb5e911a88f914c106afd2a8c9ba9127835 /hw | |
parent | e5924d8980e0bd027f2f12fa702ec1c555538230 (diff) |
Use GCC_FMT_ATTR (format checking)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/mips_fulong2e.c | 3 | ||||
-rw-r--r-- | hw/mips_malta.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index 61ca9c4209..df80ef6c2b 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 1cb7880cd6..0969089435 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; |