From 168d72478ed7fbc309296cf92de651773e185019 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 8 Dec 2021 15:25:42 +0100 Subject: [PATCH] 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 --- src/bankd/bankd_pcsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bankd/bankd_pcsc.c b/src/bankd/bankd_pcsc.c index e0b349c..5bc7bb8 100644 --- a/src/bankd/bankd_pcsc.c +++ b/src/bankd/bankd_pcsc.c @@ -178,7 +178,7 @@ if (rv != SCARD_S_SUCCESS) { \ LOGW_PCSC_ERROR(w, rv, text); \ goto end; \ } else { \ - LOGW((w), ": OK\n"); \ + LOGW((w), text ": OK\n"); \ } static int pcsc_get_atr(struct bankd_worker *worker)