[U-Boot] [PATCH/RFC] fix several printf() modifiers

Mike Frysinger vapier at gentoo.org
Thu Dec 15 06:35:51 CET 2011


On Wednesday 14 December 2011 05:04:07 Andreas Bießmann wrote:
> --- a/arch/avr32/cpu/at32ap700x/mmu.c
> +++ b/arch/avr32/cpu/at32ap700x/mmu.c
>
> -	printf("VMR table @ 0x%08x\n", vmr_table_addr);
> +	printf("VMR table @ %#lx\n", vmr_table_addr);

this isn't the same.  probably should be %08lx.

> --- a/common/cmd_sf.c
> +++ b/common/cmd_sf.c
>
> -	debug("offset=%#x, sector_size=%#x, len=%#x\n",
> +	debug("offset=%#x, sector_size=%#x, len=%#zx\n",
>
> -		debug("Skip region %x size %x: no change\n",
> +		debug("Skip region %x size %zx: no change\n",
>
> --- a/fs/fat/fat.c
> +++ b/fs/fat/fat.c
> 
> -		debug("FAT read sect=%d, clust_size=%d, DIRENTSPERBLOCK=%d\n",
> +		debug("FAT read sect=%d, clust_size=%d, DIRENTSPERBLOCK=%zd\n",

these look good.
-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/20111215/e0092fcb/attachment.pgp>


More information about the U-Boot mailing list