aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBorislav Petkov <petkov@uni-muenster.de>2006-06-11 23:17:01 -0400
committerJeff Garzik <jeff@garzik.org>2006-06-11 23:17:01 -0400
commitbd5d825c9434b83925a88bd30eb9eef51908a3c9 (patch)
tree1b95f111b90d2a6909d325a100d3c75840e3991c /drivers/scsi
parentb47725743cc53203d275ede5c54985ad92c15f42 (diff)
libata: Adjust initial debugging levels through preprocessor defines.
Signed-off-by: <petkov@uni-muenster.de> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libata-core.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 40d16124cc9f..3f1aa77621fd 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -5181,7 +5181,15 @@ static void ata_host_init(struct ata_port *ap, struct Scsi_Host *host,
5181 ap->hw_sata_spd_limit = UINT_MAX; 5181 ap->hw_sata_spd_limit = UINT_MAX;
5182 ap->active_tag = ATA_TAG_POISON; 5182 ap->active_tag = ATA_TAG_POISON;
5183 ap->last_ctl = 0xFF; 5183 ap->last_ctl = 0xFF;
5184 ap->msg_enable = ATA_MSG_DRV; 5184
5185#if defined(ATA_VERBOSE_DEBUG)
5186 /* turn on all debugging levels */
5187 ap->msg_enable = 0x00FF;
5188#elif defined(ATA_DEBUG)
5189 ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO | ATA_MSG_CTL | ATA_MSG_WARN | ATA_MSG_ERR;
5190#else
5191 ap->msg_enable = ATA_MSG_DRV | ATA_MSG_ERR;
5192#endif
5185 5193
5186 INIT_WORK(&ap->port_task, NULL, NULL); 5194 INIT_WORK(&ap->port_task, NULL, NULL);
5187 INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap); 5195 INIT_WORK(&ap->hotplug_task, ata_scsi_hotplug, ap);