From: Vadim Bendebury Date: Wed, 12 Oct 2011 11:28:38 +0000 (+0000) Subject: sf: fix erase debug output X-Git-Tag: v2011.12-rc1~80^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f6734cf502586d758b0569f5d921b71277688bd;p=oweals%2Fu-boot.git 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 Signed-off-by: Mike Frysinger --- 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);