[Pcsclite-git-commit] [pcsc-tools] 12/32: pcsc_scan: use 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 7cc0c81b61cf318a11ac2e5b182e034d13c96cf8
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Sat Apr 8 14:40:37 2017 +0200

    pcsc_scan: use print_pcsc_error() macro
    
    test_rv() now uses print_pcsc_error() macro.
---
 pcsc_scan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pcsc_scan.c b/pcsc_scan.c
index 84da3df..232d2cf 100644
--- a/pcsc_scan.c
+++ b/pcsc_scan.c
@@ -55,7 +55,7 @@
 do { \
 	if (rv != SCARD_S_SUCCESS) \
 	{ \
-		printf("%s%s: %s%s\n", red, fct, pcsc_stringify_error(rv), color_end); \
+		print_pcsc_error(fct, rv); \
 		(void)SCardReleaseContext(hContext); \
 		return -1; \
 	} \

-- 
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