summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-09-11 18:54:48 +0000
committerWolfgang Denk <wd@denx.de>2011-09-21 23:05:15 +0200
commit3f96ee334756135a8e3e4ec2f29308e9bc88f102 (patch)
treecfb819a28b18c6a42555782111df0899d67ece44 /drivers/mtd
parentff25d32c25acd78bac339254108b132178f294b8 (diff)
downloadu-boot-imx-3f96ee334756135a8e3e4ec2f29308e9bc88f102.zip
u-boot-imx-3f96ee334756135a8e3e4ec2f29308e9bc88f102.tar.gz
u-boot-imx-3f96ee334756135a8e3e4ec2f29308e9bc88f102.tar.bz2
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 <vbendeb@chromium.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/spi/spi_flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index 730c009..ced4c94 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: