• Alan Stern's avatar
    USB: make the "usbfs_snoop" log more pertinent · 4c6e8971
    Alan Stern authored
    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: default avatarAlan Stern <stern@rowland.harvard.edu>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    4c6e8971
devio.c 45.1 KB