diff options
author | W. Trevor King <wking@tremily.us> | 2012-08-16 22:22:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-17 12:44:04 -0400 |
commit | 93efc55b42536273d8ca5cccb5261cfe5e1471bb (patch) | |
tree | a9455c806f897adf57439463ef14c169a23c96a7 | |
parent | 5afbfa638d52ac844459bca55170f354b109b4dc (diff) |
staging: usbip: export usbip_debug_flag as a usbip-core module parameter.
Now usbip_common.c's pr_fmt is the only thing setup by CONFIG_USBIP_DEBUG
that you can't subsequently alter using this parameter.
Signed-off-by: W. Trevor King <wking@tremily.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/usbip/usbip_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/usbip/usbip_common.c b/drivers/staging/usbip/usbip_common.c index 70f230269329..891984238cdc 100644 --- a/drivers/staging/usbip/usbip_common.c +++ b/drivers/staging/usbip/usbip_common.c | |||
@@ -22,7 +22,9 @@ | |||
22 | #include <linux/fs.h> | 22 | #include <linux/fs.h> |
23 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/stat.h> | ||
25 | #include <linux/module.h> | 26 | #include <linux/module.h> |
27 | #include <linux/moduleparam.h> | ||
26 | #include <net/sock.h> | 28 | #include <net/sock.h> |
27 | 29 | ||
28 | #include "usbip_common.h" | 30 | #include "usbip_common.h" |
@@ -36,6 +38,8 @@ unsigned long usbip_debug_flag = 0xffffffff; | |||
36 | unsigned long usbip_debug_flag; | 38 | unsigned long usbip_debug_flag; |
37 | #endif | 39 | #endif |
38 | EXPORT_SYMBOL_GPL(usbip_debug_flag); | 40 | EXPORT_SYMBOL_GPL(usbip_debug_flag); |
41 | module_param(usbip_debug_flag, ulong, S_IRUGO|S_IWUSR); | ||
42 | MODULE_PARM_DESC(usbip_debug_flag, "debug flags (defined in usbip_common.h)"); | ||
39 | 43 | ||
40 | /* FIXME */ | 44 | /* FIXME */ |
41 | struct device_attribute dev_attr_usbip_debug; | 45 | struct device_attribute dev_attr_usbip_debug; |