From: Michael R Sweet Date: Mon, 7 Oct 2019 17:14:10 +0000 (-0400) Subject: Change DEBUG message to ERROR for libusb_init (Issue #5658) X-Git-Tag: v2.3.1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99c3e9f3f2a18d76fa080f6460bafed74a21bf6c;p=thirdparty%2Fcups.git Change DEBUG message to ERROR for libusb_init (Issue #5658) --- diff --git a/CHANGES.md b/CHANGES.md index 0a60e65647..f8540ec632 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c index 87606ac130..1c4d9f1172 100644 --- a/backend/usb-libusb.c +++ b/backend/usb-libusb.c @@ -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); }