提交 da0e21d3 编写于 作者: T Tejun Heo 提交者: Jeff Garzik

libata: use ata_link_printk() when printing SError

SError belongs to link not port.  Use ata_link_printk() to print it.
Signed-off-by: NTejun Heo <tj@kernel.org>
Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
上级 5dbfc9cb
...@@ -2040,7 +2040,7 @@ static void ata_eh_link_report(struct ata_link *link) ...@@ -2040,7 +2040,7 @@ static void ata_eh_link_report(struct ata_link *link)
} }
if (ehc->i.serror) 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", "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_DATA_RECOVERED ? "RecovData " : "",
ehc->i.serror & SERR_COMM_RECOVERED ? "RecovComm " : "", ehc->i.serror & SERR_COMM_RECOVERED ? "RecovComm " : "",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册