diff options
author | Wu, Fengguang <fengguang.wu@intel.com> | 2008-12-17 03:52:29 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:35 -0500 |
commit | c3a739fa3507d1d5b3d2cb6cc491edeef8fa54c0 (patch) | |
tree | 808d8b3f3a61745dca7abb57796885601e0e4040 /drivers/net/wireless/iwlwifi/iwl-debug.h | |
parent | 5c11ec60ef2eb8fb409b2c0a427e5a8ab6ee05f8 (diff) |
iwlwifi: update comments on the debug interface
Bring up-to-date some comments on the location of debug files.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Acked-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-debug.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debug.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h index e4c264b4f7b0..56c13b458de7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debug.h +++ b/drivers/net/wireless/iwlwifi/iwl-debug.h | |||
@@ -96,28 +96,25 @@ static inline void iwl_dbgfs_unregister(struct iwl_priv *priv) | |||
96 | #endif /* CONFIG_IWLWIFI_DEBUGFS */ | 96 | #endif /* CONFIG_IWLWIFI_DEBUGFS */ |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * To use the debug system; | 99 | * To use the debug system: |
100 | * | 100 | * |
101 | * If you are defining a new debug classification, simply add it to the #define | 101 | * If you are defining a new debug classification, simply add it to the #define |
102 | * list here in the form of: | 102 | * list here in the form of |
103 | * | 103 | * |
104 | * #define IWL_DL_xxxx VALUE | 104 | * #define IWL_DL_xxxx VALUE |
105 | * | 105 | * |
106 | * shifting value to the left one bit from the previous entry. xxxx should be | 106 | * where xxxx should be the name of the classification (for example, WEP). |
107 | * the name of the classification (for example, WEP) | ||
108 | * | 107 | * |
109 | * You then need to either add a IWL_xxxx_DEBUG() macro definition for your | 108 | * You then need to either add a IWL_xxxx_DEBUG() macro definition for your |
110 | * classification, or use IWL_DEBUG(IWL_DL_xxxx, ...) whenever you want | 109 | * classification, or use IWL_DEBUG(IWL_DL_xxxx, ...) whenever you want |
111 | * to send output to that classification. | 110 | * to send output to that classification. |
112 | * | 111 | * |
113 | * To add your debug level to the list of levels seen when you perform | 112 | * The active debug levels can be accessed via files |
114 | * | 113 | * |
115 | * % cat /sys/class/net/wlanX/device/debug_level | 114 | * /sys/module/iwlagn/parameters/debug{50} |
115 | * /sys/class/net/wlan0/device/debug_level | ||
116 | * | 116 | * |
117 | * you simply need to add your entry to the iwl_debug_levels array. | 117 | * when CONFIG_IWLWIFI_DEBUG=y. |
118 | * | ||
119 | * If you do not see debug_level in /sys/class/net/wlanX/device/debug_level | ||
120 | * then you do not have CONFIG_IWLWIFI_DEBUG defined in your kernel config file | ||
121 | */ | 118 | */ |
122 | 119 | ||
123 | #define IWL_DL_INFO (1 << 0) | 120 | #define IWL_DL_INFO (1 << 0) |