[U-Boot] [PATCH] nand: fixup printf modifiers to match types used

Scott Wood scottwood at freescale.com
Thu Jan 15 22:33:20 CET 2009


On Tue, Jan 06, 2009 at 11:32:37AM -0500, Mike Frysinger wrote:
> @@ -499,7 +499,7 @@ int nand_write_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
>  		size_t write_size;
>  
>  		if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
> -			printf ("Skip bad block 0x%08x\n",
> +			printf ("Skip bad block 0x%08lx\n",
>  				offset & ~(nand->erasesize - 1));
>  			offset += nand->erasesize - block_offset;
>  			continue;

nand_util.c:503: warning: format '%08lx' expects type 'long unsigned
int', but argument 2 has type 'size_t'

> @@ -569,7 +569,7 @@ int nand_read_skip_bad(nand_info_t *nand, size_t offset, size_t *length,
>  		size_t read_length;
>  
>  		if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
> -			printf ("Skipping bad block 0x%08x\n",
> +			printf ("Skipping bad block 0x%08lx\n",
>  				offset & ~(nand->erasesize - 1));
>  			offset += nand->erasesize - block_offset;
>  			continue;

nand_util.c:573: warning: format '%08lx' expects type 'long unsigned
int', but argument 2 has type 'size_t'

-Scott


More information about the U-Boot mailing list