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/boot | |
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/boot')
-rw-r--r-- | src/boot/elfboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |