Skip to contentSkip to conversation

usb: gadget: Make VERBOSE_DEBUG enableable via Kconfig

PATCH New Andreas Larsson 1 participant 1 message Oct 11, 2013 USB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: gadget: Make VERBOSE_DEBUG enableable via Kconfig

---
 drivers/usb/gadget/Kconfig  |   14 ++++++++++++++
 drivers/usb/gadget/Makefile |    3 ++-
 2 files changed, 16 insertions(+), 1 deletion(-)
drivers/usb/gadget/Kconfig +14 -0
index 48cddf3..922a04d 100644
@@ -58,6 +58,20 @@ config USB_GADGET_DEBUG
 	   trying to track down.  Never enable these messages for a
 	   production build.
 
+config USB_GADGET_VERBOSE
+	bool "Verbose debugging Messages (DEVELOPMENT)"
+	depends on USB_GADGET_DEBUG
+	help
+	   Many controller and gadget drivers will print verbose debugging
+	   messages if you use this option to ask for those messages.
+
+	   Avoid enabling these messages, even if you're actively
+	   debugging such a driver.  Many drivers will emit so many
+	   messages that the driver timings are affected, which will
+	   either create new failure modes or remove the one you're
+	   trying to track down.  Never enable these messages for a
+	   production build.
+
 config USB_GADGET_DEBUG_FILES
 	boolean "Debugging information files (DEVELOPMENT)"
 	depends on PROC_FS
drivers/usb/gadget/Makefile +2 -1
index 386db9d..ba872ba 100644
@@ -1,7 +1,8 @@
 #
 # USB peripheral controller drivers
 #
-ccflags-$(CONFIG_USB_GADGET_DEBUG) := -DDEBUG
+ccflags-$(CONFIG_USB_GADGET_DEBUG)	:= -DDEBUG
+ccflags-$(CONFIG_USB_GADGET_VERBOSE)	+= -DVERBOSE_DEBUG
 
 obj-$(CONFIG_USB_GADGET)	+= udc-core.o
 obj-$(CONFIG_USB_LIBCOMPOSITE)	+= libcomposite.o
Signature · 1 line
1.7.10.4