[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MiNT] [PATCH]Define DEV_DEBUG in USBDEFS
Please commit this patch.
Thanks!
Comment:
For the USB kernel module configure debug information from the file
USBDEFS defining DEV_DEBUG there.
Index: ./sys/usb/src.km/USBDEFS
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/USBDEFS,v
retrieving revision 1.2
diff -u -8 -p -r1.2 USBDEFS
--- ./sys/usb/src.km/USBDEFS 7 May 2011 04:19:58 -0000 1.2
+++ ./sys/usb/src.km/USBDEFS 25 Nov 2011 11:53:54 -0000
@@ -1,12 +1,18 @@
+#
+# debug flags
+#
+# -DDEV_DEBUG include debugging information
+
+
ifeq ($(usb),deb)
TARGET = usbdeb.km
CPU = 020-60
-USBDEFS +=
+USBDEFS += -DDEV_DEBUG
endif
ifeq ($(usb),000)
TARGET = usb000.km
CPU = 000
USBDEFS +=
endif
Index: ./sys/usb/src.km/global.h
===================================================================
RCS file: /mint/freemint/sys/usb/src.km/global.h,v
retrieving revision 1.1
diff -u -8 -p -r1.1 global.h
--- ./sys/usb/src.km/global.h 29 Apr 2011 11:39:28 -0000 1.1
+++ ./sys/usb/src.km/global.h 25 Nov 2011 11:54:20 -0000
@@ -34,17 +34,17 @@
/* XXX -> dynamic mapping from kernel */
//#define USB_MAGIC 0x5553425FL
//#define USB_MAGIC_SH 0x55534253L
/*
* debug section
*/
-#if 0
+#ifdef DEV_DEBUG
# define ALERT(x) KERNEL_ALERT x
# define DEBUG(x) KERNEL_DEBUG x
# define TRACE(x) KERNEL_TRACE x
# define ASSERT(x) assert x
#else