From: Jagannadha Sutradharudu Teki Date: Mon, 6 Aug 2012 15:25:35 +0000 (+0530) Subject: Xilinx: ARM: sf: Enable prints on erase and write functions X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58c08da6192497b2fb681ca119ee39c0ce061f8a;p=thirdparty%2Fu-boot.git 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 --- 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);