summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-12-21 08:21:11 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-05 19:33:02 +0900
commit0f1c1294c78d1510490e466e167a668dfc0ac5ae (patch)
tree3e5e24987895155f72522d8d30dde6d0d28bd757
parentf2f01a52f28121770c5cd48352a60b87e1fa204b (diff)
downloadlinux-0f1c1294c78d1510490e466e167a668dfc0ac5ae.tar.gz
linux-0f1c1294c78d1510490e466e167a668dfc0ac5ae.tar.bz2
linux-0f1c1294c78d1510490e466e167a668dfc0ac5ae.zip
ata: pata_cmd640: 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>
-rw-r--r--drivers/ata/pata_cmd640.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_cmd640.c b/drivers/ata/pata_cmd640.c
index d0bcabb58b44..1a3372a72213 100644
--- a/drivers/ata/pata_cmd640.c
+++ b/drivers/ata/pata_cmd640.c
@@ -61,7 +61,7 @@ static void cmd640_set_piomode(struct ata_port *ap, struct ata_device *adev)
struct ata_device *pair = ata_dev_pair(adev);
if (ata_timing_compute(adev, adev->pio_mode, &t, T, 0) < 0) {
- printk(KERN_ERR DRV_NAME ": mode computation failed.\n");
+ ata_dev_err(adev, DRV_NAME ": mode computation failed.\n");
return;
}