diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-08-05 13:20:34 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-08-05 13:20:34 +0000 |
commit | 151a58e50211aebe730841a25c84a6fcac9cbedd (patch) | |
tree | 3cddc7e071a24dcb324033b94514b3e81e612b93 /usb.c | |
parent | 1953bc1b921568f1e237a505c93b54e6d5ea36ea (diff) | |
download | ldetect-151a58e50211aebe730841a25c84a6fcac9cbedd.tar ldetect-151a58e50211aebe730841a25c84a6fcac9cbedd.tar.gz ldetect-151a58e50211aebe730841a25c84a6fcac9cbedd.tar.bz2 ldetect-151a58e50211aebe730841a25c84a6fcac9cbedd.tar.xz ldetect-151a58e50211aebe730841a25c84a6fcac9cbedd.zip |
(usb_probe) prevent spurious warnings for strange USB interfaces
Diffstat (limited to 'usb.c')
-rw-r--r-- | usb.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -67,6 +67,8 @@ extern struct pciusb_entries usb_probe(void) { if (e->class_ == (0x1*0x100+ 0x01)) /* USB_AUDIO_CLASS*0x100 + USB_SUBCLASS_AUDIO_CONTROL*/ e->module = "snd-usb-audio"; + } else if (sscanf(buf, "I: If#=%*2d Alt=%*2d #EPs=%*2d Cls=%02x(%*5c) Sub=%02x Prot=%02x Driver=", &class_, &sub, &prot) == 3) { + /* prevent spurious warnings for strange USB interfaces */ } else fprintf(stderr, "%s %d: unknown ``I'' line\n", proc_usb_path, line); break; } |