[PATCH] mtdswap: fix printk format warning

Artem Bityutskiy dedekind1 at gmail.com
Fri Apr 1 04:30:53 EDT 2011


On Tue, 2011-03-29 at 12:35 -0700, Randy Dunlap wrote:
> From: Randy Dunlap <randy.dunlap at oracle.com>
> 
> The number is actually a sizeof(), so using %zu for it builds
> cleanly on 32-bit or 64-bit.
> 
> drivers/mtd/mtdswap.c:1456: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'unsigned int'
> 
> Signed-off-by: Randy Dunlap <randy.dunlap at oracle.com>

Pushed to l2-mtd-2.6.git tree, thanks.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list