diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-09-20 22:18:00 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-09-21 18:55:02 +0000 |
commit | 1ed1139dc4772d0cc692a21fefb2ad598932d2be (patch) | |
tree | 336fec7829e90477c2f59fecd4fd71333884ea5f /hw | |
parent | 91f169004d9e9febbf9134c8fc068d6e04613b9c (diff) |
mips_fulong2e: Fix format strings
Fix two compiler warnings (when format attribute is applied)
and one error (missing %) in format strings.
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Blue Swirl <blauwirbel@gmail.com>
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index ac82067acb..61ca9c4209 100644 --- a/hw/mips_fulong2e.c +++ b/hw/mips_fulong2e.c @@ -141,13 +141,13 @@ static int64_t load_kernel (CPUState *env) prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE); prom_buf = qemu_malloc(prom_size); - prom_set(prom_buf, index++, loaderparams.kernel_filename); + prom_set(prom_buf, index++, "%s", loaderparams.kernel_filename); if (initrd_size > 0) { - prom_set(prom_buf, index++, "rd_start=0x" PRIx64 " rd_size=%li %s", + prom_set(prom_buf, index++, "rd_start=0x%" PRIx64 " rd_size=%li %s", cpu_mips_phys_to_kseg0(NULL, initrd_offset), initrd_size, loaderparams.kernel_cmdline); } else { - prom_set(prom_buf, index++, loaderparams.kernel_cmdline); + prom_set(prom_buf, index++, "%s", loaderparams.kernel_cmdline); } /* Setup minimum environment variables */ |