From c4ddbff70621449606fa3f0a1ad8277fac0f5aeb Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Mon, 9 Feb 2009 17:52:54 +0000 Subject: Remove some warnings, mainly from format strings which didn't match the arguments. Signed-off-by: Myles Watson Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3931 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/lib/cpu.c | 4 ++-- src/arch/i386/lib/exception.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/arch/i386/lib') diff --git a/src/arch/i386/lib/cpu.c b/src/arch/i386/lib/cpu.c index 3f7361f21c..f461bbe330 100644 --- a/src/arch/i386/lib/cpu.c +++ b/src/arch/i386/lib/cpu.c @@ -225,7 +225,7 @@ void cpu_initialize(void) info = cpu_info(); - printk_notice("Initializing CPU #%d\n", info->index); + printk_notice("Initializing CPU #%ld\n", info->index); cpu = info->cpu; if (!cpu) { @@ -261,7 +261,7 @@ void cpu_initialize(void) cpu->ops->init(cpu); } - printk_info("CPU #%d initialized\n", info->index); + printk_info("CPU #%ld initialized\n", info->index); return; } diff --git a/src/arch/i386/lib/exception.c b/src/arch/i386/lib/exception.c index 2d68b918ed..a3306520b4 100644 --- a/src/arch/i386/lib/exception.c +++ b/src/arch/i386/lib/exception.c @@ -481,10 +481,10 @@ void x86_exception(struct eregs *info) } #else /* !CONFIG_GDB_STUB */ printk_emerg( - "Unexpected Exception: %d @ %02x:%08lx - Halting\n" - "Code: %d eflags: %08lx\n" - "eax: %08lx ebx: %08lx ecx: %08lx edx: %08lx\n" - "edi: %08lx esi: %08lx ebp: %08lx esp: %08lx\n", + "Unexpected Exception: %d @ %02x:%08x - Halting\n" + "Code: %d eflags: %08x\n" + "eax: %08x ebx: %08x ecx: %08x edx: %08x\n" + "edi: %08x esi: %08x ebp: %08x esp: %08x\n", info->vector, info->cs, info->eip, info->error_code, info->eflags, info->eax, info->ebx, info->ecx, info->edx, -- cgit v1.2.3