[Pcsclite-cvs-commit] r3119 - /trunk/PCSC/src/utils.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Sep 9 09:37:14 UTC 2008


Author: rousseau
Date: Tue Sep  9 09:37:14 2008
New Revision: 3119

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3119
Log:
StatSynchronize(): log with level DEBUG instead of ERROR if errno is
ENXIO "No such device or address" since it is a normal error if the
client is no more listening the pipe

Modified:
    trunk/PCSC/src/utils.c

Modified: trunk/PCSC/src/utils.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/utils.c?rev=3119&op=diff
==============================================================================
--- trunk/PCSC/src/utils.c (original)
+++ trunk/PCSC/src/utils.c Tue Sep  9 09:37:14 2008
@@ -109,8 +109,10 @@
 		fd = SYS_OpenFile(filename, O_WRONLY | O_APPEND | O_NONBLOCK, 0);
 		if (fd < 0)
 		{
-			Log3(PCSC_LOG_ERROR, "Can't open %s: %s", filename,
-				strerror(errno));
+			/* ENXIO "No such device or address" is a normal error
+			 * if the client is no more listening the pipe */
+			Log3(ENXIO == errno ? PCSC_LOG_DEBUG : PCSC_LOG_ERROR,
+				"Can't open %s: %s", filename, strerror(errno));
 		}
 		else
 		{




More information about the Pcsclite-cvs-commit mailing list