diff options
author | David Brownell <david-b@pacbell.net> | 2007-07-01 20:35:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:34:42 -0400 |
commit | 70790f6339a868e2a0d643f44899418f64a95943 (patch) | |
tree | 406a1259b869b0b157a65e89e963afd0f20d1644 /drivers/usb/gadget/Kconfig | |
parent | c67ab134ba9f83f9de86e58adfeaa14a9efa6e00 (diff) |
USB: usb gadget stack can now -DDEBUG with Kconfig
Although the other USB driver directories got taught how use Kconfig
and the Makefile to enable the debugging messages enabled by -DDEBUG,
the gadget stack was overlooked.
This patch remedies that omission, but doesn't update any drivers to
remove previous idiosyncracies in this area ... other than the RNDIS
code, which defined its own DEBUG() macro in a broken way.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r-- | drivers/usb/gadget/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 74eaa7de525f..45e01e289455 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -42,6 +42,20 @@ config USB_GADGET | |||
42 | For more information, see <http://www.linux-usb.org/gadget> and | 42 | For more information, see <http://www.linux-usb.org/gadget> and |
43 | the kernel DocBook documentation for this API. | 43 | the kernel DocBook documentation for this API. |
44 | 44 | ||
45 | config USB_GADGET_DEBUG | ||
46 | boolean "Debugging messages" | ||
47 | depends on USB_GADGET && DEBUG_KERNEL && EXPERIMENTAL | ||
48 | help | ||
49 | Many controller and gadget drivers will print some debugging | ||
50 | messages if you use this option to ask for those messages. | ||
51 | |||
52 | Avoid enabling these messages, even if you're actively | ||
53 | debugging such a driver. Many drivers will emit so many | ||
54 | messages that the driver timings are affected, which will | ||
55 | either create new failure modes or remove the one you're | ||
56 | trying to track down. Never enable these messages for a | ||
57 | production build. | ||
58 | |||
45 | config USB_GADGET_DEBUG_FILES | 59 | config USB_GADGET_DEBUG_FILES |
46 | boolean "Debugging information files" | 60 | boolean "Debugging information files" |
47 | depends on USB_GADGET && PROC_FS | 61 | depends on USB_GADGET && PROC_FS |