[Pcsclite-cvs-commit] r5484 - /trunk/pcsc-tools/pcsc_scan.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jan 5 13:03:39 UTC 2011


Author: rousseau
Date: Wed Jan  5 13:03:38 2011
New Revision: 5484

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5484
Log:
Do not print an extra \n if the ATR is not parsed/analysed

Modified:
    trunk/pcsc-tools/pcsc_scan.c

Modified: trunk/pcsc-tools/pcsc_scan.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/pcsc_scan.c?rev=5484&op=diff
==============================================================================
--- trunk/pcsc-tools/pcsc_scan.c (original)
+++ trunk/pcsc-tools/pcsc_scan.c Wed Jan  5 13:03:38 2011
@@ -399,13 +399,15 @@
 				else
 					atr[0] = '\0';
 
-				printf("%s%s%s\n\n", magenta, atr, color_end);
+				printf("%s%s%s\n", magenta, atr, color_end);
 
 				/* force display */
 				fflush(stdout);
 
 				if (analyse_atr)
 				{
+					printf("\n");
+
 					sprintf(atr_command, ATR_PARSER " '%s'", atr);
 					if (system(atr_command))
 						perror(atr_command);




More information about the Pcsclite-cvs-commit mailing list