Revision 0d380648
b/usb-linux.c | ||
---|---|---|
272 | 272 |
} |
273 | 273 |
|
274 | 274 |
if (i >= dev->descr_len) { |
275 |
printf("husb: update iface failed. no matching configuration\n");
|
|
275 |
fprintf(stderr, "husb: update iface failed. no matching configuration\n");
|
|
276 | 276 |
goto fail; |
277 | 277 |
} |
278 | 278 |
nb_interfaces = dev->descr[i + 4]; |
... | ... | |
815 | 815 |
return 0; |
816 | 816 |
|
817 | 817 |
for (f = usb_auto_filter; f; f = f->next) { |
818 |
// printf("Auto match: bus_num %d addr %d vid %d pid %d\n", |
|
819 |
// bus_num, addr, vendor_id, product_id); |
|
820 |
|
|
821 | 818 |
if (f->bus_num >= 0 && f->bus_num != bus_num) |
822 | 819 |
continue; |
823 | 820 |
|
... | ... | |
860 | 857 |
{ |
861 | 858 |
struct USBAutoFilter *f = qemu_mallocz(sizeof(*f)); |
862 | 859 |
if (!f) { |
863 |
printf("husb: failed to allocate auto filter\n");
|
|
864 |
return;
|
|
860 |
fprintf(stderr, "husb: failed to allocate auto filter\n");
|
|
861 |
return;
|
|
865 | 862 |
} |
866 | 863 |
|
867 | 864 |
f->bus_num = bus_num; |
... | ... | |
878 | 875 |
*/ |
879 | 876 |
usb_auto_timer = qemu_new_timer(rt_clock, usb_host_auto_timer, NULL); |
880 | 877 |
if (!usb_auto_timer) { |
881 |
printf("husb: failed to allocate timer\n");
|
|
878 |
fprintf(stderr, "husb: failed to allocate auto scan timer\n");
|
|
882 | 879 |
qemu_free(f); |
883 | 880 |
return; |
884 | 881 |
} |
Also available in: Unified diff