]> err.no Git - linux-2.6/commitdiff
libata: use ata_link_printk() when printing SError
authorTejun Heo <tj@kernel.org>
Thu, 31 Jul 2008 07:08:38 +0000 (16:08 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 22 Aug 2008 06:19:44 +0000 (02:19 -0400)
SError belongs to link not port.  Use ata_link_printk() to print it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c

index d4dad47b8f173f97e23637f0f65201f1544dd15a..c1db2f234d2e409d21851c91c77a292cc631406e 100644 (file)
@@ -2040,7 +2040,7 @@ static void ata_eh_link_report(struct ata_link *link)
        }
 
        if (ehc->i.serror)
-               ata_port_printk(ap, KERN_ERR,
+               ata_link_printk(link, KERN_ERR,
                  "SError: { %s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s}\n",
                  ehc->i.serror & SERR_DATA_RECOVERED ? "RecovData " : "",
                  ehc->i.serror & SERR_COMM_RECOVERED ? "RecovComm " : "",