[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 06 Oct 2004 06:01:29 -0600
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv18632
Modified Files:
parse.c
Log Message:
display idVendor and idProduct
--- /cvsroot/pcsclite/Drivers/ccid/src/parse.c 2004/10/06 11:52:45 1.20
+++ /cvsroot/pcsclite/Drivers/ccid/src/parse.c 2004/10/06 12:01:29 1.21
@@ -18,7 +18,7 @@
*/
/*
- * $Id: parse.c,v 1.20 2004/10/06 11:52:45 rousseau Exp $
+ * $Id: parse.c,v 1.21 2004/10/06 12:01:29 rousseau Exp $
*/
#include <stdio.h>
@@ -101,17 +101,19 @@
/*
* Vendor/model name
*/
+ printf(" idVendor: 0x%04X\n", dev->descriptor.idVendor);
if (usb_get_string_simple(handle, dev->descriptor.iManufacturer,
buffer, sizeof(buffer)) < 0)
- printf(" Can't get iManufacturer string\n");
+ printf(" Can't get iManufacturer string\n");
else
- printf(" iManufacturer: %s\n", buffer);
+ printf(" iManufacturer: %s\n", buffer);
+ printf(" idProduct: 0x%04X\n", dev->descriptor.idProduct);
if (usb_get_string_simple(handle, dev->descriptor.iProduct,
buffer, sizeof(buffer)) < 0)
- printf(" Can't get iProduct string\n");
+ printf(" Can't get iProduct string\n");
else
- printf(" iProduct: %s\n", buffer);
+ printf(" iProduct: %s\n", buffer);
printf(" bcdDevice: %X.%02X (firmware release?)\n",
dev->descriptor.bcdDevice >> 8, dev->descriptor.bcdDevice & 0xFF);