]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Staging: usbip: Seperate usbip config debug from CONFIG_USB_DEBUG
authorHimanshu <himanshu@symmetricore.com>
Sat, 23 Jan 2010 12:22:02 +0000 (17:52 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:52 +0000 (16:42 -0800)
Signed-off-by: Himanshu <himanshu@symmetricore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/Kconfig
drivers/staging/usbip/Makefile
drivers/staging/usbip/usbip_common.c
drivers/staging/usbip/usbip_common.h

index 350d5d65ccf31ac83805ceebf82d424d10f6558b..2c1d10acb8b52c6022461d9babb48c521f4bb93b 100644 (file)
@@ -34,3 +34,10 @@ config USB_IP_HOST
 
         To compile this driver as a module, choose M here: the
         module will be called usbip.
+
+config USB_IP_DEBUG_ENABLE
+       bool "USB-IP Debug Enable"
+       depends on USB_IP_COMMON
+       default N
+       ---help---
+         This enables the debug messages from the USB-IP drivers.
index 179f4211f96b04ab73eaf44bd0fd36d5afd832d7..6f2916b1807a6e538f8b0275251de0bb1afc05ab 100644 (file)
@@ -7,6 +7,6 @@ vhci-hcd-objs := vhci_sysfs.o vhci_tx.o vhci_rx.o vhci_hcd.o
 obj-$(CONFIG_USB_IP_HOST) += usbip.o
 usbip-objs := stub_dev.o stub_main.o stub_rx.o stub_tx.o
 
-ifeq ($(CONFIG_USB_DEBUG),y)
+ifeq ($(CONFIG_USB_IP_DEBUG_ENABLE),y)
        EXTRA_CFLAGS += -DDEBUG
 endif
index d8197028f20a79e8ef472a1dc4f9070563f4cf3f..7a45da8f9565e3731538095531402ad5833d87d6 100644 (file)
@@ -33,7 +33,7 @@
 /*-------------------------------------------------------------------------*/
 /* debug routines */
 
-#ifdef CONFIG_USB_DEBUG
+#ifdef CONFIG_USB_IP_DEBUG_ENABLE
 unsigned long usbip_debug_flag = 0xffffffff;
 #else
 unsigned long usbip_debug_flag;
index 1ca3eab8af1880de9ede46de3ffb4c3fc0cc3870..6f1dcb197d132d015fda135a599a95450adf8533 100644 (file)
  */
 
 /**
- * usbip_udbg - print debug messages if CONFIG_USB_DEBUG is defined
+ * usbip_udbg - print debug messages if CONFIG_USB_IP_DEBUG_ENABLE is defined
  * @fmt:
  * @args:
  */
 
-#ifdef CONFIG_USB_DEBUG
+#ifdef CONFIG_USB_IP_DEBUG_ENABLE
 
 #define usbip_udbg(fmt, args...)                                       \
        do {                                                            \
                        __FILE__, __LINE__, __func__, ##args);          \
        } while (0)
 
-#else  /* CONFIG_USB_DEBUG */
+#else  /* CONFIG_USB_IP_DEBUG_ENABLE */
 
 #define usbip_udbg(fmt, args...)               do { } while (0)
 
-#endif /* CONFIG_USB_DEBUG */
+#endif /* CONFIG_USB_IP_DEBUG_ENABLE */
 
 
 enum {