Hi,
        this makes a the debug message on timeout be at debug level
so it only exists when compiling with explicit debugging support.
I have added information about the request length and data length
as now if the data length is non-zero a 0 status is returned.

This depends on the previous data-loss patch. 

/Brian

Signed-off-by: Brian Murphy <[EMAIL PROTECTED]>

Index: drivers/usb/core/message.c
===================================================================
RCS file: /cvs/linux-kernel/drivers/usb/core/message.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- drivers/usb/core/message.c  12 Feb 2005 09:05:57 -0000      1.2
+++ drivers/usb/core/message.c  12 Feb 2005 10:18:55 -0000      1.3
@@ -65,11 +65,14 @@
                status = urb->status;
                /* note:  HCDs return ETIMEDOUT for other reasons too */
                if (status == -ECONNRESET) {
-                       dev_warn(&urb->dev->dev,
-                               "%s timed out on ep%d%s\n",
+                       dev_dbg(&urb->dev->dev,
+                               "%s timed out on ep%d%s len=%d/%d\n",
                                current->comm,
                                usb_pipeendpoint(urb->pipe),
-                               usb_pipein(urb->pipe) ? "in" : "out");
+                               usb_pipein(urb->pipe) ? "in" : "out",
+                               urb->actual_length,
+                               urb->transfer_buffer_length
+                               );
                        if (urb->actual_length > 0)
                                status = 0;
                        else


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to