summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-20 11:40:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-20 11:40:59 +0100
commit4bf4819a0dfddc53810a640e3be83dbbeeab0802 (patch)
treedea5d963ab9f92bb6511c24e14b4cf0a41f09939
parent118065c1b46c105e1f6f67a2b604d64ef5f596ba (diff)
downloadusbutils-4bf4819a0dfddc53810a640e3be83dbbeeab0802.tar.gz
usb-devices: fix field width on device speed field
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xusb-devices2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-devices b/usb-devices
index 9aca88d..1129d93 100755
--- a/usb-devices
+++ b/usb-devices
@@ -119,7 +119,7 @@ print_device() {
fi
speed=`cat speed`
maxchild=`cat maxchild`
- printf "\nT: Bus=%02i Lev=%02i Prnt=%02i Port=%02i Cnt=%02i Dev#=%3i Spd=%-3s MxCh=%2i\n" \
+ printf "\nT: Bus=%02i Lev=%02i Prnt=%02i Port=%02i Cnt=%02i Dev#=%3i Spd=%-4s MxCh=%2i\n" \
$busnum $level $parent $port $count $devnum $speed $maxchild
ver=`cat version`