[Pcsclite-git-commit] [pcsc-tools] 11/32: pcsc_scan: add print_pcsc_error() macro

Ludovic Rousseau rousseau at moszumanska.debian.org
Thu May 4 15:44:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository pcsc-tools.

commit 92aba236079b3892b4515835bbde96790f03d61a
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sat Apr 8 14:40:00 2017 +0200

    pcsc_scan: add print_pcsc_error() macro
---
 pcsc_scan.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pcsc_scan.c b/pcsc_scan.c
index eb9525a..84da3df 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -48,6 +48,9 @@
 #define SCARD_E_NO_READERS_AVAILABLE 0x8010002E
 #endif
 
+#define print_pcsc_error(fct, rv) \
+	printf("%s%s: %s%s\n", red, fct, pcsc_stringify_error(rv), color_end)
+
 #define test_rv(fct, rv, hContext) \
 do { \
 	if (rv != SCARD_S_SUCCESS) \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/pcsc-tools.git



More information about the Pcsclite-cvs-commit mailing list