[Pcsclite-git-commit] [CCID] 01/01: InterruptRead(): log libusb error name
Ludovic Rousseau
rousseau at moszumanska.debian.org
Sun Mar 27 19:55:18 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository CCID.
commit 998c7965c69b855d1dbb7a04a8d367cf8dbb1a78
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Sun Mar 27 21:43:35 2016 +0200
InterruptRead(): log libusb error name
As in 7a46f702e3c4752304d94efc61a84618a0a566c9 use libusb_error_name()
to display the libusb error name instead of error value.
---
src/ccid_usb.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ccid_usb.c b/src/ccid_usb.c
index aa8df9b..43bc090 100644
--- a/src/ccid_usb.c
+++ b/src/ccid_usb.c
@@ -1237,7 +1237,8 @@ int InterruptRead(int reader_index, int timeout /* in ms */)
ret = libusb_submit_transfer(transfer);
if (ret < 0) {
libusb_free_transfer(transfer);
- DEBUG_CRITICAL2("libusb_submit_transfer failed: %d", ret);
+ DEBUG_CRITICAL2("libusb_submit_transfer failed: %s",
+ libusb_error_name(ret));
return ret;
}
@@ -1255,7 +1256,8 @@ int InterruptRead(int reader_index, int timeout /* in ms */)
if (libusb_handle_events(ctx) < 0)
break;
libusb_free_transfer(transfer);
- DEBUG_CRITICAL2("libusb_handle_events failed: %d", ret);
+ DEBUG_CRITICAL2("libusb_handle_events failed: %s",
+ libusb_error_name(ret));
return ret;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git
More information about the Pcsclite-cvs-commit
mailing list