summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2011-10-20 18:29:17 +0000
committerGraeme Russ <graeme.russ@gmail.com>2011-11-02 21:45:38 +1100
commit4c1c355a68d102e900617639d702c35390564355 (patch)
tree45f44c12e6543117baa43ef313e0b7e49ad12ace
parentfdb711528c7fe7fef71dcefe7f51b21f4e395f8b (diff)
downloadu-boot-imx-4c1c355a68d102e900617639d702c35390564355.zip
u-boot-imx-4c1c355a68d102e900617639d702c35390564355.tar.gz
u-boot-imx-4c1c355a68d102e900617639d702c35390564355.tar.bz2
x86: Fix a compiler warning in arch/x86/lib/realmode.c
Ensure that the value being passed to a %d format specifier is of type int. Signed-off-by: Gabe Black <gabeblack@chromium.org>
-rw-r--r--arch/x86/lib/realmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/realmode.c b/arch/x86/lib/realmode.c
index c113393..6aa0f23 100644
--- a/arch/x86/lib/realmode.c
+++ b/arch/x86/lib/realmode.c
@@ -41,7 +41,7 @@ int realmode_setup(void)
if (realmode_size > (REALMODE_MAILBOX - (char *)REALMODE_BASE)) {
printf("realmode switch too large (%ld bytes, max is %d)\n",
realmode_size,
- (REALMODE_MAILBOX - (char *)REALMODE_BASE));
+ (int)(REALMODE_MAILBOX - (char *)REALMODE_BASE));
return -1;
}