summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-07-22 10:59:28 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-01-16 20:50:06 +0100
commit7a3c349eb1856fcdaf153915f0d277c3087c9ffd (patch)
treeed8e68ef3f7a924e5faf24608b7f66c78db66111
parent251eef19263809f42fe260431944261c8be2c252 (diff)
downloadcoreboot-7a3c349eb1856fcdaf153915f0d277c3087c9ffd.tar.xz
rmodule: Fix 64-bit related typecast errors
BUG=None BRANCH=None TEST=Compiles successfully Original-Change-Id: I5687c24fcecd26e7656317eb8dde0f1f798e49fc Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/209335 Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> (cherry picked from commit 707cb3e274aa7eabc8e1792fc09d05b4c9e95913) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I2a40acbb14a5ba5c6e4d552b67a331256567d5b4 Reviewed-on: http://review.coreboot.org/8220 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
-rw-r--r--src/lib/rmodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c
index 908297ba04..828a63d913 100644
--- a/src/lib/rmodule.c
+++ b/src/lib/rmodule.c
@@ -152,17 +152,17 @@ static int rmodule_relocate(const struct rmodule *module)
reloc = module->relocations;
num_relocations = rmodule_number_relocations(module);
- printk(BIOS_DEBUG, "Processing %zu relocs. Offset value of 0x%08x\n",
- num_relocations, adjustment);
+ printk(BIOS_DEBUG, "Processing %zu relocs. Offset value of 0x%08lx\n",
+ num_relocations, (unsigned long)adjustment);
while (num_relocations > 0) {
uintptr_t *adjust_loc;
/* If the adjustment location is non-NULL adjust it. */
adjust_loc = rmodule_load_addr(module, *reloc);
- printk(PK_ADJ_LEVEL, "Adjusting %p: 0x%08x -> 0x%08x\n",
- adjust_loc, *adjust_loc,
- *adjust_loc + adjustment);
+ printk(PK_ADJ_LEVEL, "Adjusting %p: 0x%08lx -> 0x%08lx\n",
+ adjust_loc, (unsigned long) *adjust_loc,
+ (unsigned long) *adjust_loc + adjustment);
*adjust_loc += adjustment;
reloc++;