Skip to contentSkip to conversation

sf: fix erase debug output

PATCH New Mike Frysinger 2 participants 2 messages Oct 12, 2011 – Dec 1, 2011 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sf: fix erase debug output

From: Vadim Bendebury <[email protected]>

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.

---
 drivers/mtd/spi/spi_flash.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mtd/spi/spi_flash.c +1 -2
index ced4c94..f689cc4 100644
@@ -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);
Signature · 1 line
1.7.6.1
#1 lore raw

PATCH 1/1 sf: fix erase debug output

Quoted 10 lines · On Wed, 12 Oct 2011 17:28:38 -0400 Mike Frysinger <[email protected]> wrote:

From: Vadim Bendebury <[email protected]>

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.

---
 drivers/mtd/spi/spi_flash.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied to u-boot-staging/agust at denx.de. Thanks!

Anatolij