aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/Kconfig
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2006-04-02 14:39:20 -0700
committerRoland Dreier <rolandd@cisco.com>2006-04-02 14:39:20 -0700
commit227c939b00cf786b5e2e95fc904518206f478421 (patch)
treef62cd8a2f0663d3c9853eead57ba91dd9626a572 /drivers/infiniband/hw/mthca/Kconfig
parentIPoIB: Always build debugging code unless CONFIG_EMBEDDED=y (diff)
downloadlinux-dev-227c939b00cf786b5e2e95fc904518206f478421.tar.xz
linux-dev-227c939b00cf786b5e2e95fc904518206f478421.zip
IB/mthca: Always build debugging code unless CONFIG_EMBEDDED=y
Change the mthca debugging trace output code so that it can enabled and disabled at runtime with the debug_level module parameter in sysfs. Also, don't allow CONFIG_INFINIBAND_MTHCA_DEBUG to be disabled unless CONFIG_EMBEDDED is selected. We want users (and especially distros) to have this turned on unless they really need to save space, because by the time we want debugging output, it's usually too late to rebuild a kernel. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/Kconfig')
-rw-r--r--drivers/infiniband/hw/mthca/Kconfig11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mthca/Kconfig b/drivers/infiniband/hw/mthca/Kconfig
index e88be85b3d5c..9aa5a4468a75 100644
--- a/drivers/infiniband/hw/mthca/Kconfig
+++ b/drivers/infiniband/hw/mthca/Kconfig
@@ -7,10 +7,11 @@ config INFINIBAND_MTHCA
("Tavor") and the MT25208 PCI Express HCA ("Arbel").
config INFINIBAND_MTHCA_DEBUG
- bool "Verbose debugging output"
+ bool "Verbose debugging output" if EMBEDDED
depends on INFINIBAND_MTHCA
- default n
+ default y
---help---
- This option causes the mthca driver produce a bunch of debug
- messages. Select this is you are developing the driver or
- trying to diagnose a problem.
+ This option causes debugging code to be compiled into the
+ mthca driver. The output can be turned on via the
+ debug_level module parameter (which can also be set after
+ the driver is loaded through sysfs).