diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-10-12 11:28:38 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-12-05 21:55:24 +0100 |
commit | 1f6734cf502586d758b0569f5d921b71277688bd (patch) | |
tree | 7f1536ed03c5436fc1baf4d1bddf930822a12174 /drivers/mtd/spi/spi_flash.c | |
parent | 7708d8b352e9e595f6f08afd3206af6495c7dc09 (diff) |
sf: fix erase debug output
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@chromium.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/spi_flash.c')
-rw-r--r-- | 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 ced4c94000..f689cc47cf 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); |