blob: af2612fd8a1d3504e545af725f7314fb80331a00 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From bb7df8c6ff30be3786483767d3afb0e77a69a640 Mon Sep 17 00:00:00 2001
2From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
3Date: Sat, 12 Oct 2013 21:21:18 +0200
4Subject: sf: consistently use debug() for warning/error messages
5
6Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
7
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
11 }
12
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);
19 return NULL;
20 }
21@@ -296,7 +296,7 @@ struct spi_flash *spi_flash_probe(unsign
22 /* Setup spi_slave */
23 spi = spi_setup_slave(bus, cs, max_hz, spi_mode);
24 if (!spi) {
25- printf("SF: Failed to set up slave\n");
26+ debug("SF: Failed to set up slave\n");
27 return NULL;
28 }
29
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));
33 if (ret) {
34- printf("SF: Failed to get idcodes\n");
35+ debug("SF: Failed to get idcodes\n");
36 goto err_read_id;
37 }
38
39@@ -341,8 +341,8 @@ struct spi_flash *spi_flash_probe(unsign
40 #endif
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");
47 }
48 #endif
49