From 5f27f6777389b989184de1b5d82bddfaf308e9ea Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Sun, 11 Sep 2011 21:13:51 -0700 Subject: 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 Reviewed-on: http://gerrit.chromium.org/gerrit/7523 Reviewed-by: Mike Frysinger --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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: -- cgit v1.2.3