[Pcsclite-git-commit] [CCID] 01/02: OpenUSBByName(): add some low level debug

Ludovic Rousseau rousseau at moszumanska.debian.org
Mon Jan 4 19:33:13 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 e49bd051d6398829439a6f5ca47c9be235f67fc9
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Mon Jan 4 20:18:22 2016 +0100

    OpenUSBByName(): add some low level debug
    
    Log the bus_number, device_address, idVendor and idProduct of the
    current libusb device in the loop.
    
    This debug is mostly useful on Mac OS X since the idVendor and idProduct
    of the searched device is _not_ given in the device name.
---
 src/ccid_usb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/ccid_usb.c b/src/ccid_usb.c
index bee8a45..b3f4469 100644
--- a/src/ccid_usb.c
+++ b/src/ccid_usb.c
@@ -385,6 +385,7 @@ again_libusb:
 				continue;
 			}
 #endif
+			DEBUG_COMM3("Try device: %d/%d", bus_number, device_address);
 
 			int r = libusb_get_device_descriptor(dev, &desc);
 			if (r < 0)
@@ -394,6 +395,8 @@ again_libusb:
 				continue;
 			}
 
+			DEBUG_COMM3("vid/pid : %04X/%04X", desc.idVendor, desc.idProduct);
+
 			if (desc.idVendor == vendorID && desc.idProduct == productID)
 			{
 				int already_used;

-- 
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