bankd_pcsc: Improve logging in non-error case

Before this commit, the PCSC operation (e.g. SCardStatus) is only
printed in the error case, but not in the debug case.  Let's fix that.

[000 CONN_CLIENT_MAPPED_CARD] bankd_pcsc.c:196 : OK

	will become

[000 CONN_CLIENT_MAPPED_CARD] bankd_pcsc.c:196 SCardTransmit: OK

Change-Id: I3c77655c5d1f76be778cb8873d8acf1343c87b05
This commit is contained in:
Harald Welte 2021-12-08 15:25:42 +01:00
parent 7b87ba1e38
commit 168d72478e
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ if (rv != SCARD_S_SUCCESS) { \
LOGW_PCSC_ERROR(w, rv, text); \ LOGW_PCSC_ERROR(w, rv, text); \
goto end; \ goto end; \
} else { \ } else { \
LOGW((w), ": OK\n"); \ LOGW((w), text ": OK\n"); \
} }
static int pcsc_get_atr(struct bankd_worker *worker) static int pcsc_get_atr(struct bankd_worker *worker)