1 From bb7df8c6ff30be3786483767d3afb0e77a69a640 Mon Sep 17 00:00:00 2001
2 From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3 Date: Sat, 12 Oct 2013 21:21:18 +0200
4 Subject: sf: consistently use debug() for warning/error messages
6 Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
8 diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c
9 index 5eb8ffe..04356f1 100644
10 --- a/drivers/mtd/spi/sf_probe.c
11 +++ b/drivers/mtd/spi/sf_probe.c
12 @@ -176,8 +176,8 @@ static struct spi_flash *spi_flash_validate_params(struct spi_slave *spi,
15 if (i == ARRAY_SIZE(spi_flash_params_table)) {
16 - printf("SF: Unsupported flash IDs: ");
17 - printf("manuf %02x, jedec %04x, ext_jedec %04x\n",
18 + debug("SF: Unsupported flash IDs: ");
19 + debug("manuf %02x, jedec %04x, ext_jedec %04x\n",
20 idcode[0], jedec, ext_jedec);
23 @@ -296,7 +296,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
25 spi = spi_setup_slave(bus, cs, max_hz, spi_mode);
27 - printf("SF: Failed to set up slave\n");
28 + debug("SF: Failed to set up slave\n");
32 @@ -310,7 +310,7 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
33 /* Read the ID codes */
34 ret = spi_flash_cmd(spi, CMD_READ_ID, idcode, sizeof(idcode));
36 - printf("SF: Failed to get idcodes\n");
37 + debug("SF: Failed to get idcodes\n");
41 @@ -341,8 +341,8 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
43 #ifndef CONFIG_SPI_FLASH_BAR
44 if (flash->size > SPI_FLASH_16MB_BOUN) {
45 - puts("SF: Warning - Only lower 16MiB accessible,");
46 - puts(" Full access #define CONFIG_SPI_FLASH_BAR\n");
47 + debug("SF: Warning - Only lower 16MiB accessible,");
48 + debug(" Full access #define CONFIG_SPI_FLASH_BAR\n");