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:
Gabe Black 2011-10-20 18:29:17 +00:00 committed by Graeme Russ
parent fdb711528c
commit 4c1c355a68

View File

@ -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;
}