From 58c08da6192497b2fb681ca119ee39c0ce061f8a Mon Sep 17 00:00:00 2001 From: Jagannadha Sutradharudu Teki Date: Mon, 6 Aug 2012 20:55:35 +0530 Subject: [PATCH] Xilinx: ARM: sf: Enable prints on erase and write functions This patch provides to enabled the prints on erase and write functions to make sure that user to know the functionality. Signed-off-by: Jagannadha Sutradharudu Teki --- drivers/mtd/spi/spi_flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c index eb6a7db2cd9..7b566c632ab 100644 --- a/drivers/mtd/spi/spi_flash.c +++ b/drivers/mtd/spi/spi_flash.c @@ -122,7 +122,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); @@ -249,7 +249,7 @@ int spi_flash_cmd_erase(struct spi_flash *flash, u8 erase_cmd, 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); -- 2.47.3