[Pcsclite-cvs-commit] r3408 - /trunk/Drivers/ccid/src/parse.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Apr 2 07:27:13 UTC 2009
Author: rousseau
Date: Thu Apr 2 07:27:13 2009
New Revision: 3408
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3408
Log:
get the iInterface string instead of just printing the string number
Modified:
trunk/Drivers/ccid/src/parse.c
Modified: trunk/Drivers/ccid/src/parse.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/parse.c?rev=3408&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/parse.c (original)
+++ trunk/Drivers/ccid/src/parse.c Thu Apr 2 07:27:13 2009
@@ -292,7 +292,11 @@
(void)printf(" UNSUPPORTED InterfaceProtocol\n");
}
- (void)printf(" iInterface: %d\n", usb_interface->iInterface);
+ if (usb_get_string_simple(handle, usb_interface->iInterface,
+ buffer, sizeof(buffer)) < 0)
+ (void)printf(" Can't get iInterface string\n");
+ else
+ (void)printf(" iInterface: %s\n", buffer);
if (usb_interface->extralen < 54)
{
More information about the Pcsclite-cvs-commit
mailing list