diff options
author | Tejun Heo <htejun@gmail.com> | 2007-06-25 08:31:05 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-06-27 02:44:18 -0400 |
commit | 55f3952d45a439cecc36fd845a87026d04c82931 (patch) | |
tree | 12c8a8836a1e127a1f7db2e7633c6a3f4d475b79 /include/linux/libata.h | |
parent | 62877f6b0c4943c2231b84b49182a078eb02a777 (diff) |
libata: kill the infamous abnormal status message
The infamous abnormal status message triggers on not so abnormal cases
including empty port and even when it's being triggered on actual
errors the info it provides is redundant and out of context - higher
level functions will print the info in better safe later anyway.
Also, by being triggered all the time, it leads people to think that
the abnormality is somehow related to all ATA and system problems
they're experiencing and gives owners of healthy systems unfounded
doubts about the integrity of the universe. Make it a DPRINTK and
save the universe.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 745c4f9b4caa..a3380f808630 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -1088,11 +1088,9 @@ static inline u8 ata_wait_idle(struct ata_port *ap) | |||
1088 | { | 1088 | { |
1089 | u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); | 1089 | u8 status = ata_busy_wait(ap, ATA_BUSY | ATA_DRQ, 1000); |
1090 | 1090 | ||
1091 | if (status != 0xff && (status & (ATA_BUSY | ATA_DRQ))) { | 1091 | if (status != 0xff && (status & (ATA_BUSY | ATA_DRQ))) |
1092 | if (ata_msg_warn(ap)) | 1092 | DPRINTK("ATA: abnormal status 0x%X on port 0x%p\n", |
1093 | printk(KERN_WARNING "ATA: abnormal status 0x%X on port 0x%p\n", | 1093 | status, ap->ioaddr.status_addr); |
1094 | status, ap->ioaddr.status_addr); | ||
1095 | } | ||
1096 | 1094 | ||
1097 | return status; | 1095 | return status; |
1098 | } | 1096 | } |