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 --- a/drivers/mtd/spi/sf_probe.c
9 +++ b/drivers/mtd/spi/sf_probe.c
10 @@ -176,8 +176,8 @@ static struct spi_flash *spi_flash_valid
13 if (i == ARRAY_SIZE(spi_flash_params_table)) {
14 - printf("SF: Unsupported flash IDs: ");
15 - printf("manuf %02x, jedec %04x, ext_jedec %04x\n",
16 + debug("SF: Unsupported flash IDs: ");
17 + debug("manuf %02x, jedec %04x, ext_jedec %04x\n",
18 idcode[0], jedec, ext_jedec);
21 @@ -296,7 +296,7 @@ struct spi_flash *spi_flash_probe(unsign
23 spi = spi_setup_slave(bus, cs, max_hz, spi_mode);
25 - printf("SF: Failed to set up slave\n");
26 + debug("SF: Failed to set up slave\n");
30 @@ -310,7 +310,7 @@ struct spi_flash *spi_flash_probe(unsign
31 /* Read the ID codes */
32 ret = spi_flash_cmd(spi, CMD_READ_ID, idcode, sizeof(idcode));
34 - printf("SF: Failed to get idcodes\n");
35 + debug("SF: Failed to get idcodes\n");
39 @@ -341,8 +341,8 @@ struct spi_flash *spi_flash_probe(unsign
41 #ifndef CONFIG_SPI_FLASH_BAR
42 if (flash->size > SPI_FLASH_16MB_BOUN) {
43 - puts("SF: Warning - Only lower 16MiB accessible,");
44 - puts(" Full access #define CONFIG_SPI_FLASH_BAR\n");
45 + debug("SF: Warning - Only lower 16MiB accessible,");
46 + debug(" Full access #define CONFIG_SPI_FLASH_BAR\n");