diff options
| author | Simon Glass <sjg@chromium.org> | 2011-09-23 06:22:04 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-10-17 22:46:13 +0200 | 
| commit | 0ec2ce4a67bdc62425e3f2a7daaa242002f31060 (patch) | |
| tree | a36776e6ba1f41006650ce3ea4b4c63cf0a50e2b /common/image.c | |
| parent | 744d9859a71c515118457fecb7a58674b600e81a (diff) | |
| download | olio-uboot-2014.01-0ec2ce4a67bdc62425e3f2a7daaa242002f31060.tar.xz olio-uboot-2014.01-0ec2ce4a67bdc62425e3f2a7daaa242002f31060.zip | |
Fix use of int as pointer in image.c
It is better to use %p in this case.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/image.c')
| -rw-r--r-- | common/image.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/common/image.c b/common/image.c index ed6b26bd2..32ad4da1d 100644 --- a/common/image.c +++ b/common/image.c @@ -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"); |