Commit d63cb4a6 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik

[PATCH] libata: report device number when PIO fails

Report device number on PIO failure.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent 565083e1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment