diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-02-09 17:52:54 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-02-09 17:52:54 +0000 |
commit | c4ddbff70621449606fa3f0a1ad8277fac0f5aeb (patch) | |
tree | 603222e5e54f62b47219b1477efc4bfccf8a65fa /src/arch/i386/lib | |
parent | 4505948faec7cc30edb9daebf53ca006d4a1645a (diff) |
Remove some warnings, mainly from format strings which didn't match the
arguments.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3931 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/arch/i386/lib')
-rw-r--r-- | src/arch/i386/lib/cpu.c | 4 | ||||
-rw-r--r-- | src/arch/i386/lib/exception.c | 8 |
2 files changed, 6 insertions, 6 deletions
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, |