From 71cd62740e150cb5b5adc1b20c7f13fa8c51b7e3 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Wed, 23 Jul 2014 04:44:09 -0700 Subject: [PATCH] rmodule: Correct the typecast with proper parenthesis BUG=None BRANCH=None TEST=Compiles successfully Change-Id: I67801f96ec63a3150263ce3d6a4a7556092c6be5 Signed-off-by: Furquan Shaikh Reviewed-on: https://chromium-review.googlesource.com/209505 Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin Commit-Queue: Aaron Durbin --- src/lib/rmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/rmodule.c b/src/lib/rmodule.c index 586997e0cc..f3fc38107d 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++;