From 707cb3e274aa7eabc8e1792fc09d05b4c9e95913 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Tue, 22 Jul 2014 10:59:28 -0700 Subject: [PATCH] rmodule: Fix 64-bit related typecast errors BUG=None BRANCH=None TEST=Compiles successfully Change-Id: I5687c24fcecd26e7656317eb8dde0f1f798e49fc Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/209335 Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin Commit-Queue: Furquan Shaikh --- src/lib/rmodule.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c index a7e2ed6438..586997e0cc 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++;