[libvirt] [Klaus at Ethgen.de: [Pkg-libvirt-maintainers] Bug#579208: USB Class/Number/... is base 16, not base 10 (Failed to convert 'ff' to unsigned int)]

Klaus Ethgen Klaus at Ethgen.de
Mon Apr 26 23:08:35 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

Am Mo den 26. Apr 2010 um 18:26 schrieb Eric Blake:
> Is there documentation somewhere that mentions what base the udev
> strings are encoded in?

A short look to the code:
drivers/usb/core/sysfs.c:
usb_descriptor_attr(bDeviceClass, "%02x\n")
usb_descriptor_attr(bDeviceSubClass, "%02x\n")
usb_descriptor_attr(bDeviceProtocol, "%02x\n")
usb_descriptor_attr(bNumConfigurations, "%d\n")
usb_descriptor_attr(bMaxPacketSize0, "%d\n")

So, yes, it is documented. :-)

Regards
   Klaus Ethgen
- -- 
Klaus Ethgen                            http://www.ethgen.de/
pub  2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <Klaus at Ethgen.de>
Fingerprint: D7 67 71 C4 99 A6 D4 FE  EA 40 30 57 3C 88 26 2B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS9Yc85+OKpjRpO3lAQr8kAf/WhUYb7Opu0inoSG39Fx1oXa6p2P4s4CD
FnHg5hZ0RyhE+gOkDKMC06GH/X19lEXEPpIAQIQKT9gmHTnyYBUvfouBrn945Oo5
CXA3hdbcquUkdK9VUPZy1rt97z4Y6Bhl5jpcq1qUmCWBX/5jjwBUbTGUczOuOrqd
fqa40E7zZGiIz+UaQ0n2IDJvj4dP2Zna+WQdX6JbklNLXVH3vbtxZ9PwDh6ZBtrS
3Ufvl4TRTJzh3XGc3Z+nOqOorAtoacMTDbCly0WvjpGKU7hkZMNrZDKaFa2ub+ae
KI1phuoHuDHPgbPBM2/uuhDuvZvRZ1knnF3VOLL7/fzDPIxi1FOJeA==
=4+C/
-----END PGP SIGNATURE-----




More information about the libvir-list mailing list