diff options
author | Chris Frey <cdfrey@foursquare.net> | 2006-12-16 02:37:42 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-20 13:14:28 -0500 |
commit | df251b8bfcc5879b947223746779f90018424a6d (patch) | |
tree | ceccc0b2fb72a2fe635640f8dd3374038ce55b38 /drivers/usb | |
parent | bfb7fb79e913f60330037d1f302efee28d5f6770 (diff) |
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 apply
cleanly to even the latest kernel. I can resubmit if it doesn't.
From: Chris Frey <cdfrey@foursquare.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | 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 3ed4cb2d56d9..4b3a6ab29bd3 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, | |||
962 | kfree(dr); | 962 | kfree(dr); |
963 | return -EFAULT; | 963 | return -EFAULT; |
964 | } | 964 | } |
965 | snoop(&ps->dev->dev, "control urb\n"); | 965 | snoop(&ps->dev->dev, "control urb: bRequest=%02x " |
966 | "bRrequestType=%02x wValue=%04x " | ||
967 | "wIndex=%04x wLength=%04x\n", | ||
968 | dr->bRequest, dr->bRequestType, dr->wValue, | ||
969 | dr->wIndex, dr->wLength); | ||
966 | break; | 970 | break; |
967 | 971 | ||
968 | case USBDEVFS_URB_TYPE_BULK: | 972 | case USBDEVFS_URB_TYPE_BULK: |