linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH libata-2.6] AHCI: print port ID not number
@ 2005-02-24 19:26 Brett Russ
  2005-02-24 19:49 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brett Russ @ 2005-02-24 19:26 UTC (permalink / raw)
  To: linux-ide

[-- Attachment #1: Type: text/plain, Size: 164 bytes --]

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 <russb@emc.com>

[-- Attachment #2: libata-2.6-ahci-printk.diff --]
[-- Type: text/x-patch, Size: 463 bytes --]

--- 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)

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH libata-2.6] AHCI: print port ID not number
@ 2005-02-24 20:03 Brett Russ
  2005-02-24 23:35 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Brett Russ @ 2005-02-24 20:03 UTC (permalink / raw)
  To: linux-ide

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 <russb@emc.com>

--- 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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-24 23:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-24 19:26 [PATCH libata-2.6] AHCI: print port ID not number Brett Russ
2005-02-24 19:49 ` Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24 20:03 Brett Russ
2005-02-24 23:35 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).