diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-11 18:54:48 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-21 21:05:15 (GMT) |
commit | 3f96ee334756135a8e3e4ec2f29308e9bc88f102 (patch) | |
tree | cfb819a28b18c6a42555782111df0899d67ece44 | |
parent | ff25d32c25acd78bac339254108b132178f294b8 (diff) | |
download | u-boot-3f96ee334756135a8e3e4ec2f29308e9bc88f102.tar.xz |
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>
-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 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: |