Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186720
b: refs/heads/master
c: 411a861
h: refs/heads/master
v: v3
  • Loading branch information
Himanshu authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent c372d71 commit 6ad57a2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a439f5bff51d3e0c93d61ee6886b9dbf29a03da9
refs/heads/master: 411a861fc4f92cf0f5039928b448dcc7ca31d423
7 changes: 7 additions & 0 deletions trunk/drivers/staging/usbip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion trunk/drivers/staging/usbip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion trunk/drivers/staging/usbip/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/staging/usbip/usbip_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
*/

/**
* 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 { \
Expand All @@ -47,11 +47,11 @@
__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 {
Expand Down

0 comments on commit 6ad57a2

Please sign in to comment.