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

ata: pata_cs5536: 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
0d43bff5 56f7979e

+2 -2
+2 -2
drivers/ata/pata_cs5536.c
··· 263 263 ppi[1] = &ata_dummy_port_info; 264 264 265 265 if (use_msr) 266 - printk(KERN_ERR DRV_NAME ": Using MSR regs instead of PCI\n"); 266 + dev_err(&dev->dev, DRV_NAME ": Using MSR regs instead of PCI\n"); 267 267 268 268 cs5536_read(dev, CFG, &cfg); 269 269 270 270 if ((cfg & IDE_CFG_CHANEN) == 0) { 271 - printk(KERN_ERR DRV_NAME ": disabled by BIOS\n"); 271 + dev_err(&dev->dev, DRV_NAME ": disabled by BIOS\n"); 272 272 return -ENODEV; 273 273 } 274 274