[U-Boot] [PATCH v3 19/21] Use uintptr_t for 32/64-bit compatibility

Mike Frysinger vapier at gentoo.org
Mon Oct 3 20:57:15 CEST 2011


On Monday, September 26, 2011 20:10:53 Simon Glass wrote:
> --- a/common/cmd_mem.c
> +++ b/common/cmd_mem.c
>
>  				printf ("\nMem error @ 0x%08X: "
>  					"found %08lX, expected %08lX\n",
> -					(uint)addr, readback, val);
> +					(uint)(uintptr_t)addr, readback, val);

could you change the printf format to %#p instead (and drop the casts 
completely for "addr") ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111003/a48d49be/attachment.pgp 


More information about the U-Boot mailing list