Fix use of int as pointer in image.c
authorSimon Glass <sjg@chromium.org>
Fri, 23 Sep 2011 06:22:04 +0000 (06:22 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 17 Oct 2011 20:46:13 +0000 (22:46 +0200)
It is better to use %p in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
common/image.c

index ed6b26bd2a7fc17542791cfc9d55e7b0b9c41db4..32ad4da1d32701857f855cafbf39e89c321102a8 100644 (file)
@@ -1578,7 +1578,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag
                        goto error;
                }
 
-               printf ("   Booting using the fdt blob at 0x%x\n", (int)fdt_blob);
+               printf("   Booting using the fdt blob at 0x%p\n", fdt_blob);
 
        } else if (images->legacy_hdr_valid &&
                        image_check_type (&images->legacy_hdr_os_copy, IH_TYPE_MULTI)) {
@@ -1597,7 +1597,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag
                if (fdt_len) {
 
                        fdt_blob = (char *)fdt_data;
-                       printf ("   Booting using the fdt at 0x%x\n", (int)fdt_blob);
+                       printf("   Booting using the fdt at 0x%p\n", fdt_blob);
 
                        if (fdt_check_header (fdt_blob) != 0) {
                                fdt_error ("image is not a fdt");