From 93efc55b42536273d8ca5cccb5261cfe5e1471bb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 16 Aug 2012 22:22:36 -0400 Subject: 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/usbip/usbip_common.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/staging/usbip') 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 @@ #include #include #include +#include #include +#include #include #include "usbip_common.h" @@ -36,6 +38,8 @@ unsigned long usbip_debug_flag = 0xffffffff; unsigned long usbip_debug_flag; #endif 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 */ struct device_attribute dev_attr_usbip_debug; -- cgit v1.2.1