aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-07-16 01:29:39 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-20 08:02:11 -0400
commitb64bbc39f2122a2276578e40144af69ef01decd4 (patch)
treebd760da68bc785490ecd31060d892eeb7123782d /drivers/ata/ahci.c
parent975530e8a33fdeb1ad80d82fde11d56bf9ed2760 (diff)
libata: improve EH report formatting
Requiring LLDs to format multiple error description messages properly doesn't work too well. Help LLDs a bit by making ata_ehi_push_desc() insert ", " on each invocation. __ata_ehi_push_desc() is the raw version without the automatic separator. While at it, make ehi_desc interface proper functions instead of macros. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index c5034d450c62..210292cd8ad1 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1289,12 +1289,12 @@ static void ahci_error_intr(struct ata_port *ap, u32 irq_stat)
1289 if (irq_stat & PORT_IRQ_IF_ERR) { 1289 if (irq_stat & PORT_IRQ_IF_ERR) {
1290 err_mask |= AC_ERR_ATA_BUS; 1290 err_mask |= AC_ERR_ATA_BUS;
1291 action |= ATA_EH_SOFTRESET; 1291 action |= ATA_EH_SOFTRESET;
1292 ata_ehi_push_desc(ehi, ", interface fatal error"); 1292 ata_ehi_push_desc(ehi, "interface fatal error");
1293 } 1293 }
1294 1294
1295 if (irq_stat & (PORT_IRQ_CONNECT | PORT_IRQ_PHYRDY)) { 1295 if (irq_stat & (PORT_IRQ_CONNECT | PORT_IRQ_PHYRDY)) {
1296 ata_ehi_hotplugged(ehi); 1296 ata_ehi_hotplugged(ehi);
1297 ata_ehi_push_desc(ehi, ", %s", irq_stat & PORT_IRQ_CONNECT ? 1297 ata_ehi_push_desc(ehi, "%s", irq_stat & PORT_IRQ_CONNECT ?
1298 "connection status changed" : "PHY RDY changed"); 1298 "connection status changed" : "PHY RDY changed");
1299 } 1299 }
1300 1300
@@ -1303,7 +1303,7 @@ static void ahci_error_intr(struct ata_port *ap, u32 irq_stat)
1303 1303
1304 err_mask |= AC_ERR_HSM; 1304 err_mask |= AC_ERR_HSM;
1305 action |= ATA_EH_SOFTRESET; 1305 action |= ATA_EH_SOFTRESET;
1306 ata_ehi_push_desc(ehi, ", unknown FIS %08x %08x %08x %08x", 1306 ata_ehi_push_desc(ehi, "unknown FIS %08x %08x %08x %08x",
1307 unk[0], unk[1], unk[2], unk[3]); 1307 unk[0], unk[1], unk[2], unk[3]);
1308 } 1308 }
1309 1309