From: Tejun Heo Date: Sun, 2 Apr 2006 09:51:52 +0000 (+0900) Subject: [PATCH] libata: report device number when PIO fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d63cb4a6365aa161341fc365df1edc87cd00c9c0;p=linux-beck.git [PATCH] libata: report device number when PIO fails Report device number on PIO failure. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- 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) 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