diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-11 21:13:51 -0700 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2011-09-12 09:24:53 -0700 |
commit | 5f27f6777389b989184de1b5d82bddfaf308e9ea (patch) | |
tree | d1ffe754b5eeeb0044258b8a09261954286244f9 /drivers/mtd | |
parent | d253930dc51d007fde41dde36399cf5910c7e305 (diff) |
Fix compilation warning when compiling with DEBUG enabled.
The correct size format specification for size_t is 'z'.
BUG-=none
TEST=manual
compile with and without DEBUG defined, observe success.
Change-Id: I036500751f0cc271eb0fd5623d61fd05a81013f9
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/7523
Reviewed-by: Mike Frysinger <vapier@chromium.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 d372461311f..07e2bd357f3 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -288,7 +288,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: |