[Pcsclite-cvs-commit] r3088 - /trunk/PCSC/src/winscard_msg_srv.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Aug 12 12:20:10 UTC 2008


Author: rousseau
Date: Tue Aug 12 12:20:10 2008
New Revision: 3088

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3088
Log:
SHMProcessEventsContext(): also log the received command not just the
client ID

Modified:
    trunk/PCSC/src/winscard_msg_srv.c

Modified: trunk/PCSC/src/winscard_msg_srv.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg_srv.c?rev=3088&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg_srv.c (original)
+++ trunk/PCSC/src/winscard_msg_srv.c Tue Aug 12 12:20:10 2008
@@ -49,6 +49,29 @@
 extern char AraKiri;
 extern char ReCheckSerialReaders;
 
+static const char *CommandsText[] = {
+	"CMD_VERSION",	/* mtype = 0xF8 and command = 0x00 */
+	"ESTABLISH_CONTEXT",	/* mtype = 0xF1 */
+	"RELEASE_CONTEXT",
+	"LIST_READERS",
+	"CONNECT",
+	"RECONNECT",
+	"DISCONNECT",
+	"BEGIN_TRANSACTION",
+	"END_TRANSACTION",
+	"TRANSMIT",
+	"CONTROL",
+	"STATUS",
+	"GET_STATUS_CHANGE",
+	"CANCEL",
+	"CANCEL_TRANSACTION",
+	"GET_ATTRIB",
+	"SET_ATTRIB",
+	"TRANSMIT_EXTENDED",
+	"CONTROL_EXTENDED",
+	"NULL"
+};
+
 /**
  * @brief Accepts a Client connection.
  *
@@ -284,7 +307,7 @@
 		/*
 		 * Set the identifier handle
 		 */
-		Log2(PCSC_LOG_DEBUG, "correctly processed client: %d", dwClientID);
+		Log3(PCSC_LOG_DEBUG, "command %s received by client %d", CommandsText[msgStruct->command], dwClientID);
 		return 1;
 	}
 




More information about the Pcsclite-cvs-commit mailing list