提交 d63cb4a6 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

[PATCH] libata: report device number when PIO fails

Report device number on PIO failure.
Signed-off-by: NTejun Heo <htejun@gmail.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册