]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix USB printing on OpenBSD (STR #4525)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 22:10:45 +0000 (22:10 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 9 Dec 2014 22:10:45 +0000 (22:10 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12348 a1ca3aef-8c08-0410-bb20-df032aa958be

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

index 4c40a7c7545404750335e3323b73588d7b3c5d7a..550fd17bb75a787af502b9a7481830bcf892c4bc 100644 (file)
@@ -18,6 +18,7 @@ CHANGES IN CUPS V2.0.2
        - Fixed builds when no SSL/TLS library is available, or when explicitly
          disabled (STR #4531)
        - Fixed an OpenBSD charset transcoding issue.
+       - Fixed USB printing on OpenBSD (STR #4525)
 
 
 CHANGES IN CUPS V2.0.1
index 07796ce0b3c57626b462a01a3ac6416763c52d93..31b856da4b9863502019e6c6039590f0657a96db 100644 (file)
@@ -1451,9 +1451,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;
+    }
   }
 
  /*