sf: fix erase debug output
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.
Signed-off-by Vadim Bendebury <[email protected]>
Signed-off-by Mike Frysinger <[email protected]>
--- drivers/mtd/spi/spi_flash.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/mtd/spi/spi_flash.c +1 -2
@@ -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
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.
Signed-off-by Vadim Bendebury <[email protected]>Signed-off-by Mike Frysinger <[email protected]>--- 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