From 3f96ee334756135a8e3e4ec2f29308e9bc88f102 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Sun, 11 Sep 2011 18:54:48 +0000 Subject: [PATCH] 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 Signed-off-by: Mike Frysinger --- drivers/mtd/spi/spi_flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2