ata: pata_cypress: convert printk() calls
authorHannes Reinecke <hare@suse.de>
Tue, 21 Dec 2021 07:21:15 +0000 (08:21 +0100)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Wed, 5 Jan 2022 10:33:03 +0000 (19:33 +0900)
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>
drivers/ata/pata_cypress.c

index 5b3a7a8..3be5d52 100644 (file)
@@ -62,7 +62,7 @@ static void cy82c693_set_piomode(struct ata_port *ap, struct ata_device *adev)
        u32 addr;
 
        if (ata_timing_compute(adev, adev->pio_mode, &t, T, 1) < 0) {
-               printk(KERN_ERR DRV_NAME ": mome computation failed.\n");
+               ata_dev_err(adev, DRV_NAME ": mome computation failed.\n");
                return;
        }