diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-10-05 11:49:25 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-10-05 12:10:33 -0700 |
commit | eb617b9cd6f12a91ccb478b1470635dcd4956445 (patch) | |
tree | bd126622f64f86a7472fc40ba52eaddc136d979a | |
parent | 050549093598ee67fbc5f4e1c9e928a2b2186903 (diff) | |
download | usbutils-eb617b9cd6f12a91ccb478b1470635dcd4956445.tar.gz |
lsusb: bU2DevExitLat is little endian, not big endian.
The bU2DevExitLat field is a 2 byte field. According to the USB 3.0
specification, all mult-byte fields are moved over the bus in little-endian
order (least significant byte first). So buf[8] is the LSB, buf[9] is the MSB
of the U2 exit latency value.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | lsusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3648,7 +3648,7 @@ static void dump_ss_device_capability_desc(unsigned char *buf) break; } printf(" bU1DevExitLat %4u micro seconds\n", buf[7]); - printf(" bU2DevExitLat %8u micro seconds\n", buf[9] + (buf[8] << 8)); + printf(" bU2DevExitLat %8u micro seconds\n", buf[8] + (buf[9] << 8)); } static void dump_container_id_device_capability_desc(unsigned char *buf) |