diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2011-10-12 13:54:21 -0700 |
---|---|---|
committer | Vadim Bendebury <vbendeb@chromium.org> | 2011-10-12 14:23:39 -0700 |
commit | 78d80b3be02932ac519d26c6b1eb0a47177133d8 (patch) | |
tree | 73b1970abdfec0ba7daba69912df613caf68397f /drivers/mtd | |
parent | 028d37a7af3c90054af759a7413b3ecc15fee0ca (diff) |
Fix erase side value in the debug message.
There is no need to multiply the length of the area in bytes by the
erase sector size.
BUG=none
TEST=manual
. when debug messages are enabled, the sensible erase size value is
printed.
Change-Id: I12373419fc1c136fac45869336487de5eedc441b
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/9965
Reviewed-by: Gabe Black (Do Not Use) <gabeblack@google.com>
Diffstat (limited to 'drivers/mtd')
-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 07e2bd357f3..819d03d35f8 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -288,8 +288,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); |