From patchwork Mon Dec 10 14:41:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,1/4] sf: Enable prints on erase and write functions Date: Mon, 10 Dec 2012 04:41:58 -0000 From: Jagannadha Sutradharudu Teki X-Patchwork-Id: 204930 Message-Id: <1355150521-3339-2-git-send-email-jagannadh.teki@gmail.com> To: u-boot@lists.denx.de This patch provides to enabled the prints on erase and write functions to make sure that how many bytes erase/write into flash device. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/spi_flash.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index 00aece9..464c2ab 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -115,7 +115,7 @@ int spi_flash_cmd_write_multi(struct spi_flash *flash, u32 offset, byte_addr = 0; } - debug("SF: program %s %zu bytes @ %#x\n", + printf("SF: program %s %zu bytes @ %#x\n", ret ? "failure" : "success", len, offset); spi_release_bus(flash->spi); @@ -235,7 +235,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u32 offset, size_t len) goto out; } - debug("SF: Successfully erased %zu bytes @ %#x\n", len, start); + printf("SF: Successfully erased %zu bytes @ %#x\n", len, start); out: spi_release_bus(flash->spi);