From 99c3e9f3f2a18d76fa080f6460bafed74a21bf6c Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 7 Oct 2019 13:14:10 -0400 Subject: [PATCH] Change DEBUG message to ERROR for libusb_init (Issue #5658) --- CHANGES.md | 4 +++- backend/usb-libusb.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.47.2