sf: fix debug format string warning
authorVadim Bendebury <vbendeb@chromium.org>
Sun, 11 Sep 2011 18:54:48 +0000 (18:54 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 21 Sep 2011 21:05:15 +0000 (23:05 +0200)
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>
drivers/mtd/spi/spi_flash.c

index 730c009dea2ce9467b119080d7b8bf075cb72702..ced4c940008b080923c0345e9afc8682a5814f4d 100644 (file)
@@ -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: