mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git
synced 2024-11-15 06:53:43 +08:00
Add more space to lsusb.py output
I want to suggest adding one more space between version and speed in lsusb.py. For USB 3.0 devices are these numbers connected. Example: 3-4.1.2 090c:1000 00 2.00 480MBit/s 100mA 1IFs (SMI Corporation USB DISK AA04012700009416) usb4 1d6b:0003 09 3.005000MBit/s 0mA 1IFs (xhci_hcd 0000:00:14.0) Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3fe53e7d2e
commit
a9ab323074
2
lsusb.py
2
lsusb.py
@ -383,7 +383,7 @@ class UsbDevice:
|
||||
else:
|
||||
col = cols[1]
|
||||
if not nohub or self.iclass != 9:
|
||||
str = "%-16s%s%04x:%04x%s %02x %s%4sMBit/s %s %iIFs (%s%s%s)" % \
|
||||
str = "%-16s%s%04x:%04x%s %02x %s%5sMBit/s %s %iIFs (%s%s%s)" % \
|
||||
(" " * self.level + self.fname,
|
||||
cols[1], self.vid, self.pid, cols[0],
|
||||
self.iclass, self.usbver, self.speed, self.maxpower,
|
||||
|
Loading…
Reference in New Issue
Block a user