From: Wu Fengguang <fengguang.wu@intel.com>
To: "Zhu, Yi" <yi.zhu@intel.com>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
"ipw3945-devel@lists.sourceforge.net"
<ipw3945-devel@lists.sourceforge.net>
Subject: Re: [PATCH 3/8] iwlwifi: update comments on the debug interface
Date: Wed, 17 Dec 2008 18:53:17 +0800 [thread overview]
Message-ID: <20081217105317.GA20663@localhost> (raw)
In-Reply-To: <1229503954-30347-4-git-send-email-yi.zhu@intel.com>
On Wed, Dec 17, 2008 at 10:52:29AM +0200, Zhu, Yi wrote:
> From: Wu, Fengguang <fengguang.wu@intel.com>
>
> 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>
> ---
> drivers/net/wireless/iwlwifi/iwl-agn.c | 2 +-
> drivers/net/wireless/iwlwifi/iwl-debug.h | 17 +++++++----------
> 2 files changed, 8 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
> index 9d50fad..d0fb7a3 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-agn.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
> @@ -3354,7 +3354,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb)
>
> /*
> * The following adds a new attribute to the sysfs representation
> - * of this device driver (i.e. a new file in /sys/bus/pci/drivers/iwl/)
> + * of this device driver (i.e. a new file in /sys/class/net/wlan0/device/)
> * used for controlling the debug level.
> *
> * See the level definitions in iwl for details.
> diff --git a/drivers/net/wireless/iwlwifi/iwl-debug.h b/drivers/net/wireless/iwlwifi/iwl-debug.h
> index e4c264b..56c13b4 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)
> #endif /* CONFIG_IWLWIFI_DEBUGFS */
>
> /*
> - * To use the debug system;
> + * To use the debug system:
> *
> * If you are defining a new debug classification, simply add it to the #define
> - * list here in the form of:
> + * list here in the form of
> *
> * #define IWL_DL_xxxx VALUE
> *
> - * shifting value to the left one bit from the previous entry. xxxx should be
> - * the name of the classification (for example, WEP)
> + * where xxxx should be the name of the classification (for example, WEP).
> *
> * You then need to either add a IWL_xxxx_DEBUG() macro definition for your
> * classification, or use IWL_DEBUG(IWL_DL_xxxx, ...) whenever you want
> * to send output to that classification.
> *
> - * To add your debug level to the list of levels seen when you perform
> + * The active debug levels can be accessed via files
> *
> - * % cat /sys/class/net/wlanX/device/debug_level
> + * /sys/module/iwlagn/parameters/debug{50}
> + * /sys/class/net/wlan0/device/debug_level
> *
> - * you simply need to add your entry to the iwl_debug_levels array.
> - *
> - * If you do not see debug_level in /sys/class/net/wlanX/device/debug_level
> - * then you do not have CONFIG_IWLWIFI_DEBUG defined in your kernel config file
> + * when CONFIG_IWLWIFI_DEBUG=y.
> */
Hi Yi,
This was my prepared version:
* The debug levels can be activated by the "debug" module parameter("debug50"
* for 5000), and be runtime accessed via file
*
* /sys/class/net/wlan0/device/debug_level
*
* when CONFIG_IWLWIFI_DEBUG=y.
It's not really an obviously better writing though, and can be safely ignored.
Thanks,
Fengguang
prev parent reply other threads:[~2008-12-17 10:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-17 8:52 [PATCH 0/8] iwlwifi driver 12/17 updates Zhu Yi
2008-12-17 8:52 ` [PATCH 1/8] iwlwifi: cleanup iwl-dev.h Zhu Yi
2008-12-17 8:52 ` [PATCH 2/8] iwlwifi: add line feed to printk Zhu Yi
2008-12-17 8:52 ` [PATCH 3/8] iwlwifi: update comments on the debug interface Zhu Yi
2008-12-17 8:52 ` [PATCH 4/8] iwlwifi: use type uint for module param debug Zhu Yi
2008-12-17 8:52 ` [PATCH 5/8] iwlwifi: remove useless goto Zhu Yi
2008-12-17 8:52 ` [PATCH 6/8] iwlwifi: use meaningful vars in _iwl_poll_bit() Zhu Yi
2008-12-17 8:52 ` [PATCH 7/8] iwlwifi: use GFP_KERNEL to allocate Rx SKB memory Zhu Yi
2008-12-17 8:52 ` [PATCH 8/8] iwlwifi: indicate txpower is off in sysfs Zhu Yi
2008-12-17 10:53 ` Wu Fengguang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081217105317.GA20663@localhost \
--to=fengguang.wu@intel.com \
--cc=ipw3945-devel@lists.sourceforge.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=yi.zhu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.