usb/usbmon: correct the data interpretation of usbmon's output
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Sat, 17 Mar 2012 14:23:49 +0000 (15:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Apr 2012 20:54:00 +0000 (13:54 -0700)
commit2e8dc2f2c1f669401f4bb07ccdb92ae8e44a9f00
tree9b5ed9e93473a676bf30849f613b18cd399396e9
parenta8edc42a11e1d7b7e158d4026670fd83854dfcc2
usb/usbmon: correct the data interpretation of usbmon's output

The doc says that the data
55534243 5e000000 00000000 00000600 00000000 00000000 00000000 000000
is the SCSI command 0x5e. According to the usbmon source, it dumps one
byte after the other. The first 4 bytes are US_BULK_CB_SIGN which is
correct. After that we see the TAG which is 0x5e. The cdb is 0x00 in
this example.
In order to correct this, I change the example to a READ_10 command
which is 0x28 so it is not just a zero somewhere in the stream.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/usb/usbmon.txt