patch-2.4.4 linux/drivers/usb/serial/keyspan.c
Next file: linux/drivers/usb/serial/keyspan_pda.c
Previous file: linux/drivers/usb/serial/io_edgeport.c
Back to the patch index
Back to the overall index
-  Lines: 36
-  Date:
Thu Apr 12 12:16:36 2001
-  Orig file: 
v2.4.3/linux/drivers/usb/serial/keyspan.c
-  Orig date: 
Fri Mar  2 17:50:22 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/usb/serial/keyspan.c linux/drivers/usb/serial/keyspan.c
@@ -49,6 +49,7 @@
 */
 
 
+#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/signal.h>
@@ -62,13 +63,14 @@
 #include <linux/tty_flip.h>
 #include <linux/module.h>
 #include <linux/spinlock.h>
-
-#define DEBUG
-/*  #ifdef CONFIG_USB_SERIAL_DEBUG */
-	#define DEBUG
-/*  #endif */
 #include <linux/usb.h>
 
+#ifdef CONFIG_USB_SERIAL_DEBUG
+	static int debug = 1;
+#else
+	static int debug;
+#endif
+
 #include "usb-serial.h"
 #include "keyspan.h"
 
@@ -1671,3 +1673,7 @@
 		kfree(port->private);
 	}
 }
+
+MODULE_PARM(debug, "i");
+MODULE_PARM_DESC(debug, "Debug enabled or not");
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)