At least with one new LTE Modem (Gemalto PLS8-E) I found that the Interface Number can also be a character (a, b, c and d). This leads to that the printf gives an error and the line is not displayed correctly
Changing the configuration to string fixes this for both int and string Interface Enumerators Signed-off-by: [Tobias] <[[email protected]]> --- usb-devices | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb-devices b/usb-devices index b14ca0d..4e2fb66 100755 --- a/usb-devices +++ b/usb-devices @@ -76,7 +76,7 @@ print_interface() { driver="(none)" fi classname=`class_decode $class` - printf "I: If#=%2i Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n" \ + printf "I: If#=%2s Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n" \ 0x${ifnum#0} ${altset#0} ${numeps#0} $class "$classname" $subclass \ $protocol $driver -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
