summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2014-07-23 04:44:09 -0700
committerMarc Jones <marc.jones@se-eng.com>2015-01-27 01:44:12 +0100
commitae9cd01460a1d04385fc911eff1df7907d25f76a (patch)
tree23b609bf0ad53a47d7de9c3b160eb54c7f644dc7 /src
parentefb5cde87fb0afef7a0e3c1c6bf3a7cc9cb8dbeb (diff)
downloadcoreboot-ae9cd01460a1d04385fc911eff1df7907d25f76a.tar.xz
rmodule: Correct the typecast with proper parenthesis
BUG=None BRANCH=None TEST=Compiles successfully Original-Change-Id: I67801f96ec63a3150263ce3d6a4a7556092c6be5 Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/209505 Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Commit-Queue: Aaron Durbin <adurbin@chromium.org> (cherry picked from commit 71cd62740e150cb5b5adc1b20c7f13fa8c51b7e3) Signed-off-by: Marc Jones <marc.jones@se-eng.com> Change-Id: I0c3f5f10a3af7028728dadca539681a081d858e0 Reviewed-on: http://review.coreboot.org/8237 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src')
-rw-r--r--src/lib/rmodule.c2
1 files changed, 1 insertions, 1 deletions
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++;