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

index aab54c676460f4b6ef9ef82709a112b378f067d1..ba78c244ac7711286c249dfec9906fdfa82607bb 100644 (file)
@@ -1,4 +1,4 @@
-CHANGES - 2.2.13 - 2019-09-05
+CHANGES - 2.2.13 - 2019-10-07
 =============================
 
 
@@ -8,6 +8,8 @@ Changes in CUPS v2.2.13
 - Added a workaround for the scheduler's systemd support (Issue #5640)
 - Fixed spelling of "fold-accordion".
 - Fixed the default common name for TLS certificates used by `ippserver`.
+- The libusb-based USB backend now reports an error when the distribution
+  permissions are wrong (Issue #5658)
 
 
 Changes in CUPS v2.2.12
index 042854bba63c91b992ac7b0119142325bd1b8536..c03686a63378d33cc3f5681a77d0c679c3831db2 100644 (file)
@@ -829,8 +829,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);
   }