diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-11 18:54:48 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-21 23:05:15 +0200 |
commit | 3f96ee334756135a8e3e4ec2f29308e9bc88f102 (patch) | |
tree | cfb819a28b18c6a42555782111df0899d67ece44 /drivers/mtd | |
parent | ff25d32c25acd78bac339254108b132178f294b8 (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |