diff options
author | Gabe Black <gabeblack@chromium.org> | 2011-10-20 18:29:17 +0000 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2011-11-02 21:45:38 +1100 |
commit | 4c1c355a68d102e900617639d702c35390564355 (patch) | |
tree | 45f44c12e6543117baa43ef313e0b7e49ad12ace /arch/x86/lib | |
parent | fdb711528c7fe7fef71dcefe7f51b21f4e395f8b (diff) | |
download | u-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>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/realmode.c | 2 |
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; } |