[U-Boot] [PATCH] sf: fix erase debug output
Mike Frysinger
vapier at gentoo.org
Wed Oct 12 23:28:38 CEST 2011
From: Vadim Bendebury <vbendeb at chromium.org>
We want to show the length, so multiplying by sector size makes no sense.
This is a hold over from the erase code before the big refactor.
Signed-off-by: Vadim Bendebury <vbendeb at chromium.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
drivers/mtd/spi/spi_flash.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
index ced4c94..f689cc4 100644
--- a/drivers/mtd/spi/spi_flash.c
+++ b/drivers/mtd/spi/spi_flash.c
@@ -233,8 +233,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd,
goto out;
}
- debug("SF: Successfully erased %zu bytes @ %#x\n",
- len * erase_size, start);
+ debug("SF: Successfully erased %zu bytes @ %#x\n", len, start);
out:
spi_release_bus(flash->spi);
--
1.7.6.1
More information about the U-Boot
mailing list