diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-07 13:14:10 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-10-07 13:14:10 -0400 |
commit | 99c3e9f3f2a18d76fa080f6460bafed74a21bf6c (patch) | |
tree | 41660b10cc4c02102a156b088161181791558bd2 | |
parent | 2b47f0916272082d296d9a488e9c249687f91aaa (diff) | |
download | cups-99c3e9f3f2a18d76fa080f6460bafed74a21bf6c.tar.gz |
Change DEBUG message to ERROR for libusb_init (Issue #5658)
-rw-r--r-- | CHANGES.md | 4 | ||||
-rw-r--r-- | backend/usb-libusb.c | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES.md b/CHANGES.md index 0a60e6564..f8540ec63 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 87606ac13..1c4d9f117 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); } |