summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2011-10-12 11:28:38 +0000
committerAnatolij Gustschin <agust@denx.de>2011-12-05 21:55:24 +0100
commit1f6734cf502586d758b0569f5d921b71277688bd (patch)
tree7f1536ed03c5436fc1baf4d1bddf930822a12174 /drivers/mtd
parent7708d8b352e9e595f6f08afd3206af6495c7dc09 (diff)
downloadu-boot-imx-1f6734cf502586d758b0569f5d921b71277688bd.zip
u-boot-imx-1f6734cf502586d758b0569f5d921b71277688bd.tar.gz
u-boot-imx-1f6734cf502586d758b0569f5d921b71277688bd.tar.bz2
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')
-rw-r--r--drivers/mtd/spi/spi_flash.c3
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);