]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Change DEBUG message to ERROR for libusb_init (Issue #5658)
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 7 Oct 2019 17:14:10 +0000 (13:14 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 7 Oct 2019 17:14:10 +0000 (13:14 -0400)
CHANGES.md
backend/usb-libusb.c

index 0a60e65647d8af9654fbd4cc20b90b42dd145a19..f8540ec6323b8c996a2981e263b1f53f7eaede8b 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES - 2.3.1 - 2019-10-02
+CHANGES - 2.3.1 - 2019-10-07
 ============================
 
 
@@ -9,6 +9,8 @@ Changes in CUPS v2.3.1
 - Fixed spelling of "fold-accordion".
 - Fixed the default common name for TLS certificates used by `ippeveprinter`.
 - Fixed a bug in the handling of printer resource files (Issue #5652)
+- The libusb-based USB backend now reports an error when the distribution
+  permissions are wrong (Issue #5658)
 
 
 Changes in CUPS v2.3.0
index 87606ac13045f70a8d7191d7c0ca958e22da19cf..1c4d9f11721d41df3a762a3177ca3f0fcaea0a40 100644 (file)
@@ -826,8 +826,7 @@ find_device(usb_cb_t   cb,          /* I - Callback function */
   err = libusb_init(NULL);
   if (err)
   {
-    fprintf(stderr, "DEBUG: Unable to initialize USB access via libusb, "
-                    "libusb error %i\n", (int)err);
+    fprintf(stderr, "ERROR: Unable to initialize USB access via libusb, libusb error %i (%s)\n", (int)err, libusb_strerror((int)err));
     return (NULL);
   }