提交 1f6734cf 编写于 作者: V Vadim Bendebury 提交者: Anatolij Gustschin

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: NVadim Bendebury <vbendeb@chromium.org>
Signed-off-by: NMike Frysinger <vapier@gentoo.org>
上级 7708d8b3
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册