Browse Source

bankd_pcsc: Don't log every successful SCardTransmit

Contrary to other operations, SCardTransmit has a much higher frequency
and the logs should not be clobbered with "OK" lines all over the place.

Change-Id: Icf87b61d71722b2998ae78f9aee7c4ad94c46da7
changes/68/26468/3
Harald Welte 8 months ago
parent
commit
50a0972a87
  1. 5
      src/bankd/bankd_pcsc.c

5
src/bankd/bankd_pcsc.c

@ -297,9 +297,10 @@ static int pcsc_transceive(struct bankd_worker *worker, const uint8_t *out, size
long rc;
rc = SCardTransmit(worker->reader.pcsc.hCard, pioSendPci, out, out_len, &pioRecvPci, in, in_len);
PCSC_ERROR(worker, rc, "SCardTransmit");
/* don't use PCSC_ERROR here as we don't want to log every successful SCardTransmit */
if (rc != SCARD_S_SUCCESS)
LOGW_PCSC_ERROR(worker, rc, "SCardTransmit");
end:
return rc;
}

Loading…
Cancel
Save