aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/debugfs.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-05-25 11:27:16 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:37 -0400
commit9012b28a407511fb355f6d2176a12d4653489672 (patch)
tree771b0f7adb9dbab5c907981bd4fa3a7f6219587d /drivers/net/wireless/libertas/debugfs.c
parent46868202b2dd22156460a220553a223f406f4f22 (diff)
[PATCH] libertas: make debug configurable
The debug output of libertas was either not present or it was overwhelming. This patch adds the possibility to specify a bitmask for the area of interest. One should then only get the desired output. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index 1d880e7973ba..eb1cee42ccef 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -402,11 +402,11 @@ static int libertas_event_initcmd(wlan_private *priv, void **response_buf,
402 u16 wait_option = cmd_option_waitforrsp; 402 u16 wait_option = cmd_option_waitforrsp;
403 403
404 if (!(*cmdnode = libertas_get_free_cmd_ctrl_node(priv))) { 404 if (!(*cmdnode = libertas_get_free_cmd_ctrl_node(priv))) {
405 lbs_pr_debug(1, "failed libertas_get_free_cmd_ctrl_node\n"); 405 lbs_deb_debugfs("failed libertas_get_free_cmd_ctrl_node\n");
406 return -ENOMEM; 406 return -ENOMEM;
407 } 407 }
408 if (!(*response_buf = kmalloc(3000, GFP_KERNEL))) { 408 if (!(*response_buf = kmalloc(3000, GFP_KERNEL))) {
409 lbs_pr_debug(1, "failed to allocate response buffer!\n"); 409 lbs_deb_debugfs("failed to allocate response buffer!\n");
410 return -ENOMEM; 410 return -ENOMEM;
411 } 411 }
412 libertas_set_cmd_ctrl_node(priv, *cmdnode, 0, wait_option, NULL); 412 libertas_set_cmd_ctrl_node(priv, *cmdnode, 0, wait_option, NULL);
@@ -1864,7 +1864,7 @@ static ssize_t wlan_debugfs_write(struct file *f, const char __user *buf,
1864 return 0; 1864 return 0;
1865 1865
1866 if (copy_from_user(pdata, buf, cnt)) { 1866 if (copy_from_user(pdata, buf, cnt)) {
1867 lbs_pr_debug(1, "Copy from user failed\n"); 1867 lbs_deb_debugfs("Copy from user failed\n");
1868 kfree(pdata); 1868 kfree(pdata);
1869 return 0; 1869 return 0;
1870 } 1870 }