[Pcsclite-cvs-commit] r2479 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Tue Mar 13 10:46:43 CET 2007


Author: rousseau
Date: 2007-03-13 09:46:43 +0000 (Tue, 13 Mar 2007)
New Revision: 2479

Modified:
   trunk/PCSC/src/winscard_clnt.c
Log:
profiling: more explicit warning in case of thread


Modified: trunk/PCSC/src/winscard_clnt.c
===================================================================
--- trunk/PCSC/src/winscard_clnt.c	2007-03-13 08:56:30 UTC (rev 2478)
+++ trunk/PCSC/src/winscard_clnt.c	2007-03-13 09:46:43 UTC (rev 2479)
@@ -126,9 +126,15 @@
 
 	if (profile_tty)
 	{
-		if (strncmp(fct_name, f, sizeof(fct_name)))
-			printf("\33[01;34m WARNING: %s ends before %s\33[0m\n",
-					f, fct_name);
+		if (fct_name[0])
+		{
+			if (strncmp(fct_name, f, sizeof(fct_name)))
+				printf("\33[01;34m WARNING: %s ends before %s\33[0m\n",
+						f, fct_name);
+		}
+		else
+			printf("\33[01;34m WARNING: %s ends but we lost its start\33[0m\n",
+				f);
 
 		/* allow to detect missing PROFILE_END calls */
 		fct_name[0] = '\0';




More information about the Pcsclite-cvs-commit mailing list