提交 93efc55b 编写于 作者: W W. Trevor King 提交者: Greg Kroah-Hartman

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: NW. Trevor King <wking@tremily.us>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5afbfa63
...@@ -22,7 +22,9 @@ ...@@ -22,7 +22,9 @@
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/stat.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/moduleparam.h>
#include <net/sock.h> #include <net/sock.h>
#include "usbip_common.h" #include "usbip_common.h"
...@@ -36,6 +38,8 @@ unsigned long usbip_debug_flag = 0xffffffff; ...@@ -36,6 +38,8 @@ unsigned long usbip_debug_flag = 0xffffffff;
unsigned long usbip_debug_flag; unsigned long usbip_debug_flag;
#endif #endif
EXPORT_SYMBOL_GPL(usbip_debug_flag); EXPORT_SYMBOL_GPL(usbip_debug_flag);
module_param(usbip_debug_flag, ulong, S_IRUGO|S_IWUSR);
MODULE_PARM_DESC(usbip_debug_flag, "debug flags (defined in usbip_common.h)");
/* FIXME */ /* FIXME */
struct device_attribute dev_attr_usbip_debug; struct device_attribute dev_attr_usbip_debug;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册