projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb7115
)
x86: Fix a compiler warning in arch/x86/lib/realmode.c
author
Gabe Black
<gabeblack@chromium.org>
Thu, 20 Oct 2011 18:29:17 +0000
(18:29 +0000)
committer
Graeme Russ
<graeme.russ@gmail.com>
Wed, 2 Nov 2011 10:45:38 +0000
(21:45 +1100)
Ensure that the value being passed to a %d format specifier is of type
int.
Signed-off-by: Gabe Black <gabeblack@chromium.org>
arch/x86/lib/realmode.c
patch
|
blob
|
history
diff --git
a/arch/x86/lib/realmode.c
b/arch/x86/lib/realmode.c
index c1133934155b389ad41f42d6955ae6c611267ce2..6aa0f23a1a411fcca5235942e5870035a364c01b 100644
(file)
--- 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;
}