[libata ahci] Print out port id on error messages

Linux Kernel Mailing List <[email protected]> Thu, 24 Feb 2005 19:53:59 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1537.6.12, 2005/02/24 14:53:59-05:00, [email protected]

	[libata ahci] Print out port id on error messages
	
	Pointed out by Justin Cormack, Brett Russ, and others.



 ahci.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
--- a/drivers/scsi/ahci.c	2005-03-04 12:03:14 -08:00
+++ b/drivers/scsi/ahci.c	2005-03-04 12:03:14 -08:00
@@ -574,7 +574,7 @@
 	writel(tmp, port_mmio + PORT_CMD);
 	readl(port_mmio + PORT_CMD); /* flush */
 
-	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->port_no);
+	printk(KERN_WARNING "ata%u: error occurred, port reset\n", ap->id);
 }
 
 static void ahci_eng_timeout(struct ata_port *ap)