Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Nov 14, 2012
  1. @bmork

    usb-devices: avoid numbers being seen as octal by printf

    bmork authored
    This prevents ugly error messages like this caused by
    feeding 08 or 09 to printf:
    
    T:  Bus=02 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 77 Spd=480 MxCh= 0
    D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=1199 ProdID=68a2 Rev=00.06
    S:  Manufacturer=Sierra Wireless, Incorporated
    S:  Product=MC7710
    S:  SerialNumber=3581xxxxxxxx
    C:  #Ifs= 6 Cfg#= 1 Atr=e0 MxPwr=0mA
    I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
    I:  If#=13 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
    I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
    I:  If#=14 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
    I:  If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qcserial
    /usr/bin/usb-devices: line 79: printf: 08: invalid octal number
    I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
    
    Signed-off-by: Bjørn Mork <bjorn@mork.no>
Something went wrong with that request. Please try again.