#include <linux/module.h>
#include <asm/uaccess.h>
#include <linux/usb.h>
+
+#ifdef CONFIG_USB_SERIAL_DEBUG
+ static int debug = 1;
+#else
+ static int debug;
+#endif
+
#include "usb-serial.h"
#include "kl5kusb105.h"
-static int debug;
/*
* Version Information
} else if (urb->actual_length <= 2) {
dbg("%s - size %d URB not understood", __FUNCTION__,
urb->actual_length);
- usb_serial_debug_data(debug, &port->dev, __FUNCTION__,
- urb->actual_length, data);
+ usb_serial_debug_data (__FILE__, __FUNCTION__, urb->actual_length, data);
} else {
int i;
int bytes_sent = ((__u8 *) data)[0] +
* intermixed tty_flip_buffer_push()s
* FIXME
*/
- usb_serial_debug_data(debug, &port->dev, __FUNCTION__,
- urb->actual_length, data);
+ usb_serial_debug_data (__FILE__, __FUNCTION__,
+ urb->actual_length, data);
if (bytes_sent + 2 > urb->actual_length) {
dbg("%s - trying to read more data than available"
MODULE_LICENSE("GPL");
-module_param(debug, bool, S_IRUGO | S_IWUSR);
+MODULE_PARM(debug, "i");
MODULE_PARM_DESC(debug, "enable extensive debugging messages");
+/* FIXME: implement
+MODULE_PARM(num_urbs, "i");
+MODULE_PARM_DESC(num_urbs, "number of URBs to use in write pool");
+*/
/* vim: set sts=8 ts=8 sw=8: */