Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: sata_sx4: convert printk() calls

Convert printk() calls to structured logging.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

authored by

Hannes Reinecke and committed by
Damien Le Moal
16d6623f 3156234b

+5 -4
+5 -4
drivers/ata/sata_sx4.c
··· 1179 1179 /* Turn on for ECC */ 1180 1180 if (!pdc20621_i2c_read(host, PDC_DIMM0_SPD_DEV_ADDRESS, 1181 1181 PDC_DIMM_SPD_TYPE, &spd0)) { 1182 - pr_err("Failed in i2c read: device=%#x, subaddr=%#x\n", 1183 - PDC_DIMM0_SPD_DEV_ADDRESS, PDC_DIMM_SPD_TYPE); 1182 + dev_err(host->dev, 1183 + "Failed in i2c read: device=%#x, subaddr=%#x\n", 1184 + PDC_DIMM0_SPD_DEV_ADDRESS, PDC_DIMM_SPD_TYPE); 1184 1185 return 1; 1185 1186 } 1186 1187 if (spd0 == 0x02) { 1187 1188 data |= (0x01 << 16); 1188 1189 writel(data, mmio + PDC_SDRAM_CONTROL); 1189 1190 readl(mmio + PDC_SDRAM_CONTROL); 1190 - printk(KERN_ERR "Local DIMM ECC Enabled\n"); 1191 + dev_err(host->dev, "Local DIMM ECC Enabled\n"); 1191 1192 } 1192 1193 1193 1194 /* DIMM Initialization Select/Enable (bit 18/19) */ ··· 1280 1279 and program the DIMM Module Controller. 1281 1280 */ 1282 1281 if (!(speed = pdc20621_detect_dimm(host))) { 1283 - printk(KERN_ERR "Detect Local DIMM Fail\n"); 1282 + dev_err(host->dev, "Detect Local DIMM Fail\n"); 1284 1283 return 1; /* DIMM error */ 1285 1284 } 1286 1285 dev_dbg(host->dev, "Local DIMM Speed = %d\n", speed);