Skip to content

Commit

Permalink
[PATCH] libata: report device number when PIO fails
Browse files Browse the repository at this point in the history
Report device number on PIO failure.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Apr 2, 2006
1 parent 565083e commit d63cb4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d63cb4a

Please sign in to comment.