libata: Adjust initial debugging levels through preprocessor defines.
authorBorislav Petkov <petkov@uni-muenster.de>
Mon, 12 Jun 2006 03:17:01 +0000 (23:17 -0400)
committerJeff Garzik <jeff@garzik.org>
Mon, 12 Jun 2006 03:17:01 +0000 (23:17 -0400)
Signed-off-by: <petkov@uni-muenster.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c

index 40d16124cc9f9c4fce4be01493466134a1de49f3..3f1aa77621fd8ba0b7adeab77f74af813aca9446 100644 (file)
@@ -5181,7 +5181,15 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
        ap->hw_sata_spd_limit = UINT_MAX;
        ap->active_tag = ATA_TAG_POISON;
        ap->last_ctl = 0xFF;
-       ap->msg_enable = ATA_MSG_DRV;
+
+#if defined(ATA_VERBOSE_DEBUG)
+       /* turn on all debugging levels */
+       ap->msg_enable = 0x00FF;
+#elif defined(ATA_DEBUG)
+       ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN | ATA_MSG_ERR;
+#else 
+       ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR;
+#endif
 
        INIT_WORK(&ap->port_task, NULL, NULL);
        INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap);