Skip to content
Snippets Groups Projects
Commit 0ec2ce4a authored by Simon Glass's avatar Simon Glass Committed by Wolfgang Denk
Browse files

Fix use of int as pointer in image.c


It is better to use %p in this case.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 744d9859
No related branches found
No related tags found
No related merge requests found
...@@ -1578,7 +1578,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag ...@@ -1578,7 +1578,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag
goto error; 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 && } else if (images->legacy_hdr_valid &&
image_check_type (&images->legacy_hdr_os_copy, IH_TYPE_MULTI)) { 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 ...@@ -1597,7 +1597,7 @@ int boot_get_fdt (int flag, int argc, char * const argv[], bootm_headers_t *imag
if (fdt_len) { if (fdt_len) {
fdt_blob = (char *)fdt_data; 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) { if (fdt_check_header (fdt_blob) != 0) {
fdt_error ("image is not a fdt"); fdt_error ("image is not a fdt");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment