x86: Fix a compiler warning in arch/x86/lib/realmode.c
authorGabe Black <gabeblack@chromium.org>
Thu, 20 Oct 2011 18:29:17 +0000 (18:29 +0000)
committerGraeme 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

index c1133934155b389ad41f42d6955ae6c611267ce2..6aa0f23a1a411fcca5235942e5870035a364c01b 100644 (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;
        }