Message ID | 1319171357-31410-1-git-send-email-gabeblack@chromium.org |
---|---|
State | Accepted |
Commit | 4c1c355a68d102e900617639d702c35390564355 |
Delegated to: | Graeme Russ |
Headers | show |
On 21/10/11 15:29, Gabe Black wrote: > 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 | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > Applied to u-boot-x86 (with minor tweak to subject to include x86: label) Thanks, Graeme
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; }
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 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)