public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1] Fix a compiler warning in arch/x86/lib/realmode.c
@ 2011-10-21  4:29 Gabe Black
  2011-11-02 10:46 ` Graeme Russ
  0 siblings, 1 reply; 2+ messages in thread
From: Gabe Black @ 2011-10-21  4:29 UTC (permalink / raw)
  To: u-boot

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(-)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-02 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-21  4:29 [U-Boot] [PATCH v1] Fix a compiler warning in arch/x86/lib/realmode.c Gabe Black
2011-11-02 10:46 ` Graeme Russ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox