]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix libusb-based USB backend on non-Linux platforms (STR #4088)
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 May 2012 03:28:51 +0000 (03:28 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 May 2012 03:28:51 +0000 (03:28 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10473 7a7537e8-13f0-0310-91df-b6672ffda945

CHANGES-1.5.txt
backend/usb-libusb.c

index 0580958c40b61318fc9f9b27db36228e04d6b607..829ae2119af7c42d3d1597c996f9c2e674c8404f 100644 (file)
@@ -1,6 +1,12 @@
 CHANGES-1.5.txt
 ---------------
 
+CHANGES IN CUPS V1.5.4
+
+       - The libusb-based USB backend did not work on non-Linux platforms
+         (STR #4088)
+
+
 CHANGES IN CUPS V1.5.3
 
        - httpReconnect() did not reset the read/write buffers (STR #4065)
index d1517dc055c1365532f7a3b9383229743c767a4d..7a1e7f4ca13396ea72c5053e73be0b4db3d67f34 100644 (file)
@@ -1148,9 +1148,14 @@ open_device(usb_printer_t *printer,      /* I - Printer */
   else
   {
     printer->usblp_attached = 0;
-    fprintf(stderr, "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" kernel module attached\n",
-             devdesc.idVendor, devdesc.idProduct);
-    goto error;
+
+    if (errcode != LIBUSB_ERROR_NOT_SUPPORTED)
+    {
+      fprintf(stderr,
+              "DEBUG: Failed to check whether %04x:%04x has the \"usblp\" "
+              "kernel module attached\n", devdesc.idVendor, devdesc.idProduct);
+      goto error;
+    }
   }
 
  /*