Actually print SCardControl result, thanks to martin
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3677 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ef4b1e1410
commit
bfc69348f7
|
@ -552,7 +552,7 @@ static int pcsc_connect(sc_reader_t *reader, sc_slot_info_t *slot)
|
||||||
rv = priv->gpriv->SCardControl(pslot->pcsc_card, CM_IOCTL_GET_FEATURE_REQUEST, NULL,
|
rv = priv->gpriv->SCardControl(pslot->pcsc_card, CM_IOCTL_GET_FEATURE_REQUEST, NULL,
|
||||||
0, feature_buf, sizeof(feature_buf), &feature_len);
|
0, feature_buf, sizeof(feature_buf), &feature_len);
|
||||||
if (rv != SCARD_S_SUCCESS) {
|
if (rv != SCARD_S_SUCCESS) {
|
||||||
sc_debug(reader->ctx, "SCardControl failed", rv);
|
sc_debug(reader->ctx, "SCardControl failed %08x", rv);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ((feature_len % sizeof(PCSC_TLV_STRUCTURE)) != 0) {
|
if ((feature_len % sizeof(PCSC_TLV_STRUCTURE)) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue