[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



-----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 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-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]