[U-Boot] [PATCH] sf: fix debug format string warning

Mike Frysinger vapier at gentoo.org
Mon Sep 12 06:54:48 CEST 2011


From: Vadim Bendebury <vbendeb at chromium.org>

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 at chromium.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 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 730c009..ced4c94 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:
-- 
1.7.6



More information about the U-Boot mailing list