diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-04-29 00:35:12 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-06-30 23:47:08 -0400 |
commit | b376bbb49f42ed8ea566ca1b3e440240204008ca (patch) | |
tree | 101dcf4ce65791cafaea5bd1e68a3ebad2089ae2 /drivers/mtd/spi/atmel.c | |
parent | 12c2e3bbbe873ca79817845077dd8e6630d71158 (diff) | |
download | u-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/atmel.c')
-rw-r--r-- | drivers/mtd/spi/atmel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mtd/spi/atmel.c b/drivers/mtd/spi/atmel.c index 8306c00..8d02169 100644 --- a/drivers/mtd/spi/atmel.c +++ b/drivers/mtd/spi/atmel.c @@ -467,7 +467,7 @@ out: struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode) { const struct atmel_spi_flash_params *params; - unsigned long page_size; + unsigned page_size; unsigned int family; struct atmel_spi_flash *asf; unsigned int i; @@ -540,8 +540,9 @@ struct spi_flash *spi_flash_probe_atmel(struct spi_slave *spi, u8 *idcode) * params->blocks_per_sector * params->nr_sectors; - debug("SF: Detected %s with page size %lu, total %u bytes\n", - params->name, page_size, asf->flash.size); + printf("SF: Detected %s with page size %u, total ", + params->name, page_size); + print_size(asf->flash.size, "\n"); return &asf->flash; |