mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-16 23:47:49 -04:00
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>
This commit is contained in:
parent
fdb711528c
commit
4c1c355a68
@ -41,7 +41,7 @@ int realmode_setup(void)
|
|||||||
if (realmode_size > (REALMODE_MAILBOX - (char *)REALMODE_BASE)) {
|
if (realmode_size > (REALMODE_MAILBOX - (char *)REALMODE_BASE)) {
|
||||||
printf("realmode switch too large (%ld bytes, max is %d)\n",
|
printf("realmode switch too large (%ld bytes, max is %d)\n",
|
||||||
realmode_size,
|
realmode_size,
|
||||||
(REALMODE_MAILBOX - (char *)REALMODE_BASE));
|
(int)(REALMODE_MAILBOX - (char *)REALMODE_BASE));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user