summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-15 04:38:36 -0600
committerTom Rini <trini@ti.com>2014-10-27 11:04:01 -0400
commit6bcb8ade301af7aace7fc8870d8de497b8070798 (patch)
tree8b740ba0ed38025603a7ac38bca2afa1309a0ab6
parentc6da9ae8a4895ad31a8ff4e3bf3728fd7d0fd535 (diff)
downloadu-boot-imx-6bcb8ade301af7aace7fc8870d8de497b8070798.zip
u-boot-imx-6bcb8ade301af7aace7fc8870d8de497b8070798.tar.gz
u-boot-imx-6bcb8ade301af7aace7fc8870d8de497b8070798.tar.bz2
x86: Use correct printf() format string for uintptr_t
Use the inttypes header file to provide this. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/lib/relocate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/lib/relocate.c b/arch/x86/lib/relocate.c
index 526daaf..faca38f 100644
--- a/arch/x86/lib/relocate.c
+++ b/arch/x86/lib/relocate.c
@@ -16,6 +16,7 @@
*/
#include <common.h>
+#include <inttypes.h>
#include <libfdt.h>
#include <malloc.h>
#include <asm/u-boot-x86.h>
@@ -94,7 +95,7 @@ int do_elf_reloc_fixups(void)
*offset_ptr_ram += gd->reloc_off;
} else {
debug(" %p: rom reloc %x, ram %p, value %x,"
- " limit %lx\n", re_src,
+ " limit %" PRIXPTR "\n", re_src,
re_src->r_offset, offset_ptr_ram,
*offset_ptr_ram,
CONFIG_SYS_TEXT_BASE + size);