The attached patch fixes the "ata#: error occurred, port reset" line to display the port id instead of the port number.

Signed-off-by: Brett Russ <[EMAIL PROTECTED]>
--- libata-2.6/drivers/scsi/ahci.c      Thu Feb 24 14:18:35 2005
+++ libata-2.6-ahci-printk/drivers/scsi/ahci.c  Thu Feb 24 14:21:41 2005
@@ -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)

Reply via email to