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/boot/elfboot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/boot/elfboot.c') diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c index 71ecddf8ab..7caa4673fa 100644 --- a/src/boot/elfboot.c +++ b/src/boot/elfboot.c @@ -76,7 +76,7 @@ int verify_ip_checksum( memcpy(n_desc, buff, 2); } if (checksum != cb->ip_checksum) { - printk_err("Image checksum: %04x != computed checksum: %04x\n", + printk_err("Image checksum: %04x != computed checksum: %04lx\n", cb->ip_checksum, checksum); } return checksum == cb->ip_checksum; @@ -500,7 +500,7 @@ static int load_elf_segments( /* Zero the extra bytes between middle & end */ if (middle < end) { printk_debug("Clearing Segment: addr: 0x%016lx memsz: 0x%016lx\n", - (unsigned long)middle, end - middle); + (unsigned long)middle, (unsigned long)(end - middle)); /* Zero the extra bytes */ memset(middle, 0, end - middle); @@ -590,7 +590,7 @@ int elfload(struct lb_memory *mem, /* Reset to booting from this image as late as possible */ boot_successful(); - printk_debug("Jumping to boot code at 0x%x\n", entry); + printk_debug("Jumping to boot code at 0x%p\n", entry); post_code(0xfe); /* Jump to kernel */ -- cgit v1.2.3