From ae9cd01460a1d04385fc911eff1df7907d25f76a Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 23 Jul 2014 04:44:09 -0700 Subject: rmodule: Correct the typecast with proper parenthesis BUG=None BRANCH=None TEST=Compiles successfully Original-Change-Id: I67801f96ec63a3150263ce3d6a4a7556092c6be5 Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/209505 Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Aaron Durbin Original-Commit-Queue: Aaron Durbin (cherry picked from commit 71cd62740e150cb5b5adc1b20c7f13fa8c51b7e3) Signed-off-by: Marc Jones Change-Id: I0c3f5f10a3af7028728dadca539681a081d858e0 Reviewed-on: http://review.coreboot.org/8237 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer Reviewed-by: Paul Menzel --- src/lib/rmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c index 828a63d913..d7c2326f12 100644 --- a/src/lib/rmodule.c +++ b/src/lib/rmodule.c @@ -162,7 +162,7 @@ static int rmodule_relocate(const struct rmodule *module) adjust_loc = rmodule_load_addr(module, *reloc); printk(PK_ADJ_LEVEL, "Adjusting %p: 0x%08lx -> 0x%08lx\n", adjust_loc, (unsigned long) *adjust_loc, - (unsigned long) *adjust_loc + adjustment); + (unsigned long) (*adjust_loc + adjustment)); *adjust_loc += adjustment; reloc++; -- cgit v1.2.3