Commit:     df251b8bfcc5879b947223746779f90018424a6d
Parent:     bfb7fb79e913f60330037d1f302efee28d5f6770
Author:     Chris Frey <[EMAIL PROTECTED]>
AuthorDate: Sat Dec 16 02:37:42 2006 -0500
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Wed Dec 20 10:14:28 2006 -0800

    USB: fix to usbfs_snoop logging of user defined control urbs
    When sending CONTROL URB's using the usual CONTROL ioctl, logging works
    fine, but when sending them via SUBMITURB, like VMWare does, the
    control fields are not logged.  This patch fixes that.
    I didn't see any major changes to devio.c recently, so this patch should 
    cleanly to even the latest kernel.  I can resubmit if it doesn't.
    From: Chris Frey <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/core/devio.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 3ed4cb2..4b3a6ab 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -962,7 +962,11 @@ static int proc_do_submiturb(struct dev_state *ps, struct 
usbdevfs_urb *uurb,
                        return -EFAULT;
-               snoop(&ps->dev->dev, "control urb\n");
+               snoop(&ps->dev->dev, "control urb: bRequest=%02x "
+                       "bRrequestType=%02x wValue=%04x "
+                       "wIndex=%04x wLength=%04x\n",
+                       dr->bRequest, dr->bRequestType, dr->wValue,
+                       dr->wIndex, dr->wLength);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to