[Pcsclite-cvs-commit] r2729 - /trunk/PCSC/src/winscard_msg.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Jan 11 16:37:42 UTC 2008
Author: rousseau
Date: Fri Jan 11 16:37:42 2008
New Revision: 2729
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2729
Log:
Log the socket name in case of error
Modified:
trunk/PCSC/src/winscard_msg.c
Modified: trunk/PCSC/src/winscard_msg.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg.c?rev=2729&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg.c (original)
+++ trunk/PCSC/src/winscard_msg.c Fri Jan 11 16:37:42 2008
@@ -94,8 +94,8 @@
if (connect(*pdwClientID, (struct sockaddr *) &svc_addr,
sizeof(svc_addr.sun_family) + strlen(svc_addr.sun_path) + 1) < 0)
{
- Log2(PCSC_LOG_CRITICAL, "Error: connect to client socket: %s",
- strerror(errno));
+ Log3(PCSC_LOG_CRITICAL, "Error: connect to client socket %s: %s",
+ PCSCLITE_CSOCK_NAME, strerror(errno));
SYS_CloseFile(*pdwClientID);
return -1;
}
@@ -103,8 +103,8 @@
one = 1;
if (ioctl(*pdwClientID, FIONBIO, &one) < 0)
{
- Log2(PCSC_LOG_CRITICAL, "Error: cannot set socket nonblocking: %s",
- strerror(errno));
+ Log3(PCSC_LOG_CRITICAL, "Error: cannot set socket %s nonblocking: %s",
+ PCSCLITE_CSOCK_NAME, strerror(errno));
SYS_CloseFile(*pdwClientID);
return -1;
}
More information about the Pcsclite-cvs-commit
mailing list