Open Jahfry opened 2 years ago
Displaying only USB devices adds an extra tree root level.
Fix like done with network and block devices.
Examples:
Good (network devices):
root@gyges:~# dev_tree.pl -d n ➤ Command Executed: `dev_tree.pl` ➤ Displaying: Bus(es) > Network Interfaces (format: default) BUS: pci ├── 05:00.0 │ └── interface: wlp5s0 [3c:f0:11:db:17:35] ├── 06:00.0 │ └── interface: enp6s0 [b4:2e:99:3d:cd:14] └── 07:00.0 └── interface: enp7s0 [b4:2e:99:3d:cd:16] └── bridge: vmbr0
Bad (USB devices):
root@gyges:~# dev_tree.pl -d u ➤ Command Executed: `dev_tree.pl` ➤ Displaying: PCI > USB Devices (format: default) │ ├── usb1 "xHCI Host Controller" (Linux kernel) [1d6b:0002] {1:1} │ │ ├── 1-1 "ITE Device(8595)" (ITE) [048d:8297] {1:2} │ │ │ └── 1-1:1.0 │ │ └── 1-6 "USB2.0 Hub" [05e3:0608] {1:3} │ ├── usb2 "xHCI Host Controller" (Linux kernel) [1d6b:0003] {2:1} │ ├── usb3 "xHCI Host Controller" (Linux kernel) [1d6b:0002] {3:1} │ │ ├── 3-5 "Intel Corp. AX200 Bluetooth" [8087:0029] {3:2} │ │ │ ├── 3-5:1.0 │ │ │ └── 3-5:1.1 │ │ └── 3-6 "USB2.0 Hub" [05e3:0608] {3:3} │ │ ├── 3-6.2 "SteelSeries Rival 5" (SteelSeries) [1038:183c] {3:4} │ │ │ ├── 3-6.2:1.0 │ │ │ ├── 3-6.2:1.1 │ │ │ ├── 3-6.2:1.2 │ │ │ └── 3-6.2:1.3 │ │ └── 3-6.3 "USB DEVICE" (SONiX) [0c45:652f] {3:5} │ │ ├── 3-6.3:1.0 │ │ └── 3-6.3:1.1 │ ├── usb4 "xHCI Host Controller" (Linux kernel) [1d6b:0003] {4:1} │ ├── usb5 "xHCI Host Controller" (Linux kernel) [1d6b:0002] {5:1} │ ├── usb6 "xHCI Host Controller" (Linux kernel) [1d6b:0003] {6:1}`
Displaying only USB devices adds an extra tree root level.
Fix like done with network and block devices.
Examples:
Good (network devices):
Bad (USB devices):