[Pcsclite-cvs-commit] CVS PCSC/src
CVS User rousseau
ludovic.rousseau@free.fr
Wed, 27 Apr 2005 09:11:51 +0000
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv26037
Modified Files:
sys_unix.c
Log Message:
SYS_Daemon(): add the missing priority argument to Log2()
Thanks to Jeffrey Hutzelman for the patch
--- /cvsroot/pcsclite/PCSC/src/sys_unix.c 2005/04/12 12:09:08 1.17
+++ /cvsroot/pcsclite/PCSC/src/sys_unix.c 2005/04/27 09:11:50 1.18
@@ -6,7 +6,7 @@
* Copyright (C) 1999
* David Corcoran <corcoran@linuxnet.com>
*
- * $Id: sys_unix.c,v 1.17 2005/04/12 12:09:08 rousseau Exp $
+ * $Id: sys_unix.c,v 1.18 2005/04/27 09:11:50 rousseau Exp $
*/
/**
@@ -398,17 +398,20 @@
if (!noclose) {
if (SYS_CloseFile(0))
- Log2("SYS_CloseFile(0) failed: %s", strerror(errno));
+ Log2(PCSC_LOG_ERROR, "SYS_CloseFile(0) failed: %s",
+ strerror(errno));
if (SYS_CloseFile(1))
- Log2("SYS_CloseFile(1) failed: %s", strerror(errno));
+ Log2(PCSC_LOG_ERROR, "SYS_CloseFile(1) failed: %s",
+ strerror(errno));
if (SYS_CloseFile(2))
- Log2("SYS_CloseFile(2) failed: %s", strerror(errno));
+ Log2(PCSC_LOG_ERROR, "SYS_CloseFile(2) failed: %s",
+ strerror(errno));
}
if (!nochdir) {
if (SYS_Chdir("/"))
- Log2("SYS_Chdir() failed: %s", strerror(errno));
+ Log2(PCSC_LOG_ERROR, "SYS_Chdir() failed: %s", strerror(errno));
}
return 0;
#endif