[PATCH] libata: report device number when PIO fails
authorTejun Heo <htejun@gmail.com>
Sun, 2 Apr 2006 09:51:52 +0000 (18:51 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 2 Apr 2006 14:09:19 +0000 (10:09 -0400)
Report device number on PIO failure.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c

index 00018705582bb3231474408b3a619fbc41d46c68..15d6c24c8e54831e34c4b79f2b3b689fd2d8574f 100644 (file)
@@ -3909,7 +3909,8 @@ static void ata_pio_error(struct ata_port *ap)
        WARN_ON(qc == NULL);
 
        if (qc->tf.command != ATA_CMD_PACKET)
-               printk(KERN_WARNING "ata%u: PIO error\n", ap->id);
+               printk(KERN_WARNING "ata%u: dev %u PIO error\n",
+                      ap->id, qc->dev->devno);
 
        /* make sure qc->err_mask is available to
         * know what's wrong and recover