summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-09-11 21:13:51 -0700
committerVadim Bendebury <vbendeb@chromium.org>2011-09-12 09:24:53 -0700
commit5f27f6777389b989184de1b5d82bddfaf308e9ea (patch)
treed1ffe754b5eeeb0044258b8a09261954286244f9 /drivers
parentd253930dc51d007fde41dde36399cf5910c7e305 (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')
-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 d372461311..07e2bd357f 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: