From: Vadim Bendebury Date: Sun, 11 Sep 2011 18:54:48 +0000 (+0000) Subject: sf: fix debug format string warning X-Git-Tag: v2011.09-rc2~3 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=commitdiff_plain;h=3f96ee334756135a8e3e4ec2f29308e9bc88f102;ds=sidebyside sf: fix debug format string warning On some systems, we get a warning when %lu is used with size_t's, so use the correct format string. Signed-off-by: Vadim Bendebury Signed-off-by: Mike Frysinger --- diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 730c009dea..ced4c94000 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -233,7 +233,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd, goto out; } - debug("SF: Successfully erased %lu bytes @ %#x\n", + debug("SF: Successfully erased %zu bytes @ %#x\n", len * erase_size, start); out: