]> git.baikalelectronics.ru Git - kernel.git/commit
USB: make the "usbfs_snoop" log more pertinent
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 29 Jun 2009 15:02:04 +0000 (11:02 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:23 +0000 (06:46 -0700)
commit5cbc94c13da6607e5d4707240a009ea90a93dd6a
tree74f7a8876a748926ae3f788e1e1e777be2085ec7
parentfae49ab2fb6f699c41eefaed00221a3a9bff7e30
USB: make the "usbfs_snoop" log more pertinent

This patch (as1261) reduces the amount of detailed URB information
logged by usbfs when the usbfs_snoop parameter is enabled.

Currently we don't display the final status value for a completed URB.
But we do display the entire data buffer twice: both before submission
and after completion.  The after-completion display doesn't limit
itself to the actual_length value.  But since usbmon is readily
available in virtually all distributions, there's no reason for usbfs
to print out any buffer contents at all!

So this patch restricts the information to: userspace buffer pointer,
endpoint number, type, and direction, length or actual_length, and
timeout value or status.  Now everything fits neatly into a single
line.

Along with those changes, the patch also fixes the snoop output for
the REAPURBNDELAY and REAPURBNDELAY32 ioctls.  The current version
omits the 'N' from the names.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c