summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/stmicro.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-04-29 00:35:12 -0400
committerMike Frysinger <vapier@gentoo.org>2010-06-30 23:47:08 -0400
commitb376bbb49f42ed8ea566ca1b3e440240204008ca (patch)
tree101dcf4ce65791cafaea5bd1e68a3ebad2089ae2 /drivers/mtd/spi/stmicro.c
parent12c2e3bbbe873ca79817845077dd8e6630d71158 (diff)
downloadu-boot-imx-b376bbb49f42ed8ea566ca1b3e440240204008ca.zip
u-boot-imx-b376bbb49f42ed8ea566ca1b3e440240204008ca.tar.gz
u-boot-imx-b376bbb49f42ed8ea566ca1b3e440240204008ca.tar.bz2
sf: move useful messages from debug to printf
At the moment, the default SPI flash subsystem is quite terse. Errors and successes both result in a generic message. So move the useful errors and useful successes to printf output by default. While we're here, also convert the messages to use print_size(). Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi/stmicro.c')
-rw-r--r--drivers/mtd/spi/stmicro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index 21e9b00..3134027 100644
--- a/drivers/mtd/spi/stmicro.c
+++ b/drivers/mtd/spi/stmicro.c
@@ -365,8 +365,9 @@ struct spi_flash *spi_flash_probe_stmicro(struct spi_slave *spi, u8 * idcode)
stm->flash.size = params->page_size * params->pages_per_sector
* params->nr_sectors;
- debug("SF: Detected %s with page size %u, total %u bytes\n",
- params->name, params->page_size, stm->flash.size);
+ printf("SF: Detected %s with page size %u, total ",
+ params->name, params->page_size);
+ print_size(stm->flash.size, "\n");
return &stm->flash;
}