diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-01-25 09:49:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:47 -0500 |
commit | 060210f938d8aa0b9d795588a2274cd67ba9d6a4 (patch) | |
tree | 74eceabb2bb5b945862f49e567bf862d243ff13a /drivers/net/wireless/b43/debugfs.h | |
parent | 08e87a833f5e77ff33b64c9ac27cb7fb9ecd4a48 (diff) |
b43: Dynamically control log verbosity
Dynamically control the log verbosity with a module parameter.
This enables us to dynamically enable debugging messages (or disable
info, warn, error messages) via module parameter or /sys/module/b43/parameters/verbose.
This increases the module size by about 3k. But in practice it reduces the
module size for the user, because some distributions ship the b43 module
with CONFIG_B43_DEBUG set, which increases the module by about 15k.
So with this patch applied, distributions should really _disable_ CONFIG_B43_DEBUG.
There is no reason to keep it in a production-release kernel.
So we have a net reduction in size by about 12k.
This patch also adds a printk of the wireless core revision, so people
don't have to enable SSB debugging to get the wireless core revision.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/debugfs.h')
-rw-r--r-- | drivers/net/wireless/b43/debugfs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/b43/debugfs.h b/drivers/net/wireless/b43/debugfs.h index 91a2f2918a2..b9d4de4a979 100644 --- a/drivers/net/wireless/b43/debugfs.h +++ b/drivers/net/wireless/b43/debugfs.h | |||
@@ -71,7 +71,7 @@ struct b43_dfsentry { | |||
71 | struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG]; | 71 | struct dentry *dyn_debug_dentries[__B43_NR_DYNDBG]; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature); | 74 | bool b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature); |
75 | 75 | ||
76 | void b43_debugfs_init(void); | 76 | void b43_debugfs_init(void); |
77 | void b43_debugfs_exit(void); | 77 | void b43_debugfs_exit(void); |
@@ -82,7 +82,7 @@ void b43_debugfs_log_txstat(struct b43_wldev *dev, | |||
82 | 82 | ||
83 | #else /* CONFIG_B43_DEBUG */ | 83 | #else /* CONFIG_B43_DEBUG */ |
84 | 84 | ||
85 | static inline int b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature) | 85 | static inline bool b43_debug(struct b43_wldev *dev, enum b43_dyndbg feature) |
86 | { | 86 | { |
87 | return 0; | 87 | return 0; |
88 | } | 88 | } |