Lines 860-865
Link Here
|
860 |
continue; |
860 |
continue; |
861 |
|
861 |
|
862 |
printer.quirks = find_quirks(devdesc.idVendor, devdesc.idProduct); |
862 |
printer.quirks = find_quirks(devdesc.idVendor, devdesc.idProduct); |
|
|
863 |
fprintf(stderr, "DEBUG: quirks=0x%x\n", printer.quirks); |
863 |
|
864 |
|
864 |
/* |
865 |
/* |
865 |
* Ignore blacklisted printers... |
866 |
* Ignore blacklisted printers... |
Lines 892-897
Link Here
|
892 |
* 1284.4 (packet mode) protocol as well. |
893 |
* 1284.4 (packet mode) protocol as well. |
893 |
*/ |
894 |
*/ |
894 |
|
895 |
|
|
|
896 |
fprintf(stderr, "DEBUG: ic=%d isc=%d ip=%d\n", altptr->bInterfaceClass, |
897 |
altptr->bInterfaceSubClass, altptr->bInterfaceProtocol); |
898 |
|
895 |
if (((altptr->bInterfaceClass != LIBUSB_CLASS_PRINTER || |
899 |
if (((altptr->bInterfaceClass != LIBUSB_CLASS_PRINTER || |
896 |
altptr->bInterfaceSubClass != 1) && |
900 |
altptr->bInterfaceSubClass != 1) && |
897 |
((printer.quirks & USB_QUIRK_VENDOR_CLASS) == 0)) || |
901 |
((printer.quirks & USB_QUIRK_VENDOR_CLASS) == 0)) || |
Lines 935-940
Link Here
|
935 |
} |
939 |
} |
936 |
} |
940 |
} |
937 |
|
941 |
|
|
|
942 |
fprintf(stderr, "DEBUG: protocol=%d read=%d write=%d\n", protocol, |
943 |
printer.read_endp, printer.write_endp); |
938 |
if (protocol > 0) |
944 |
if (protocol > 0) |
939 |
{ |
945 |
{ |
940 |
printer.device = device; |
946 |
printer.device = device; |
Lines 949-955
Link Here
|
949 |
make_device_uri(&printer, device_id, device_uri, |
955 |
make_device_uri(&printer, device_id, device_uri, |
950 |
sizeof(device_uri)); |
956 |
sizeof(device_uri)); |
951 |
|
957 |
|
952 |
fprintf(stderr, "DEBUG2: Printer found with device ID: %s " |
958 |
fprintf(stderr, "DEBUG: Printer found with device ID: %s " |
953 |
"Device URI: %s\n", |
959 |
"Device URI: %s\n", |
954 |
device_id, device_uri); |
960 |
device_id, device_uri); |
955 |
|
961 |
|