Created
October 10, 2014 22:23
-
-
Save drzraf/61bd0426c8640d1abdf0 to your computer and use it in GitHub Desktop.
usbutils/issues/25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lsusb -s 1:2 | |
Bus 001 Device 002: ID 0421:0264 Nokia Mobile Phone | |
# cat /sys/bus/usb/devices/usb1/1-2/1-2:1.10/bInterfaceNumber | |
0a | |
# bash -vx usb-devices | |
[...] | |
printf 'I: If#=%2i Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n' 0a 0 00 02 commc 0b 00 '(none)' | |
bash: printf: 0a: invalid number | |
[...] | |
--- /usr/bin/usb-devices.save 2014-10-08 19:14:19.062029163 -0300 | |
+++ /usr/bin/usb-devices 2014-10-08 19:25:29.969355876 -0300 | |
@@ -77,7 +77,7 @@ | |
fi | |
classname=`class_decode $class` | |
printf "I: If#=%2i Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n" \ | |
- $ifnum $altset $numeps $class "$classname" $subclass \ | |
+ 0x$ifnum $altset $numeps $class "$classname" $subclass \ | |
$protocol $driver | |
for endpoint in $ifpath/ep_?? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment