From 4c1c355a68d102e900617639d702c35390564355 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 20 Oct 2011 18:29:17 +0000 Subject: [PATCH] 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 --- arch/x86/lib/realmode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/realmode.c b/arch/x86/lib/realmode.c index c113393415..6aa0f23a1a 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; } -- 2.39.5