aboutsummaryrefslogtreecommitdiffstats
path: root/usb
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2006-02-27 11:55:11 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2006-02-27 11:55:11 -0800
commita8d4bec05652c3c1eade627286bd4a95f8ef5986 (patch)
tree0ebe4d7231b9a41061eca06d1a0cdfe7523ab048 /usb
parentf7548a8c177dd826a964700f1d93e99330f2652e (diff)
downloadpatches-a8d4bec05652c3c1eade627286bd4a95f8ef5986.tar.gz
add omninet debug patch
Diffstat (limited to 'usb')
-rw-r--r--usb/omninet_debug.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/usb/omninet_debug.patch b/usb/omninet_debug.patch
new file mode 100644
index 00000000000000..47f3209a1203da
--- /dev/null
+++ b/usb/omninet_debug.patch
@@ -0,0 +1,50 @@
+ drivers/usb/serial/omninet.c | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+--- gregkh-2.6.orig/drivers/usb/serial/omninet.c 2006-02-17 18:08:32.000000000 -0800
++++ gregkh-2.6/drivers/usb/serial/omninet.c 2006-02-21 21:58:02.000000000 -0800
+@@ -204,7 +204,7 @@
+ int i;
+ int result;
+
+-// dbg("omninet_read_bulk_callback");
++ dbg("%s - port %d", __FUNCTION__, port->number);
+
+ if (urb->status) {
+ dbg("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status);
+@@ -250,7 +250,7 @@
+
+ int result;
+
+-// dbg("omninet_write port %d", port->number);
++ dbg("%s - port %d", __FUNCTION__, port->number);
+
+ if (count == 0) {
+ dbg("%s - write request of 0 bytes", __FUNCTION__);
+@@ -302,7 +302,7 @@
+ if (wport->write_urb_busy)
+ room = wport->bulk_out_size - OMNINET_HEADERLEN;
+
+-// dbg("omninet_write_room returns %d", room);
++ dbg("%s - returns %d", __FUNCTION__, room);
+
+ return (room);
+ }
+@@ -312,7 +312,7 @@
+ /* struct omninet_header *header = (struct omninet_header *) urb->transfer_buffer; */
+ struct usb_serial_port *port = (struct usb_serial_port *) urb->context;
+
+-// dbg("omninet_write_bulk_callback, port %0x\n", port);
++ dbg("%s - port %0x\n", __FUNCTION__, port->number);
+
+ port->write_urb_busy = 0;
+ if (urb->status) {
+@@ -321,8 +321,6 @@
+ }
+
+ schedule_work(&port->work);
+-
+-// dbg("omninet_write_bulk_callback, tty %0x\n", tty);
+ }
+
+