diff options
author | Tejun Heo <htejun@gmail.com> | 2006-04-02 05:51:52 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-04-02 10:09:19 -0400 |
commit | d63cb4a6365aa161341fc365df1edc87cd00c9c0 (patch) | |
tree | 6dbc938ac7f4f2d4ce3fcaadabadb8c2ff7fd01c /drivers | |
parent | 565083e1f14e7771aa6bac2d3d4aae0b08d48d78 (diff) |
[PATCH] libata: report device number when PIO fails
Report device number on PIO failure.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 00018705582b..15d6c24c8e54 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -3909,7 +3909,8 @@ static void ata_pio_error(struct ata_port *ap) | |||
3909 | WARN_ON(qc == NULL); | 3909 | WARN_ON(qc == NULL); |
3910 | 3910 | ||
3911 | if (qc->tf.command != ATA_CMD_PACKET) | 3911 | if (qc->tf.command != ATA_CMD_PACKET) |
3912 | printk(KERN_WARNING "ata%u: PIO error\n", ap->id); | 3912 | printk(KERN_WARNING "ata%u: dev %u PIO error\n", |
3913 | ap->id, qc->dev->devno); | ||
3913 | 3914 | ||
3914 | /* make sure qc->err_mask is available to | 3915 | /* make sure qc->err_mask is available to |
3915 | * know what's wrong and recover | 3916 | * know what's wrong and recover |