提交 f36d53ef 编写于 作者: S Stefan Weil 提交者: Blue Swirl

mips_malta: Fix format strings

Fix two compiler warnings (when format attribute is applied).

Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: NStefan Weil <weil@mail.berlios.de>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 1ed1139d
...@@ -728,13 +728,13 @@ static int64_t load_kernel (void) ...@@ -728,13 +728,13 @@ static int64_t load_kernel (void)
prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE); prom_size = ENVP_NB_ENTRIES * (sizeof(int32_t) + ENVP_ENTRY_SIZE);
prom_buf = qemu_malloc(prom_size); prom_buf = qemu_malloc(prom_size);
prom_set(prom_buf, prom_index++, loaderparams.kernel_filename); prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_filename);
if (initrd_size > 0) { if (initrd_size > 0) {
prom_set(prom_buf, prom_index++, "rd_start=0x%" PRIx64 " rd_size=%li %s", prom_set(prom_buf, prom_index++, "rd_start=0x%" PRIx64 " rd_size=%li %s",
cpu_mips_phys_to_kseg0(NULL, initrd_offset), initrd_size, cpu_mips_phys_to_kseg0(NULL, initrd_offset), initrd_size,
loaderparams.kernel_cmdline); loaderparams.kernel_cmdline);
} else { } else {
prom_set(prom_buf, prom_index++, loaderparams.kernel_cmdline); prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_cmdline);
} }
prom_set(prom_buf, prom_index++, "memsize"); prom_set(prom_buf, prom_index++, "memsize");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册