]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite54c67540c0da5919dda9e6fddac4e8f7218ebff
tree9b5ed9e93473a676bf30849f613b18cd399396e9
parent853416279b58729f73e7e89b69bce3667fafa009
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