[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Thu, 17 Mar 2005 03:27:10 -0700
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv14564
Modified Files:
debug.c
Log Message:
change debug_msg() in log_msg() and add the priority argument
same for debug_xxd() changed in log_xxd()
These functions are only used by the parse command and if the driver is
not used with pcsclite
--- /cvsroot/pcsclite/Drivers/ccid/src/debug.c 2005/03/14 18:56:52 1.5
+++ /cvsroot/pcsclite/Drivers/ccid/src/debug.c 2005/03/17 10:27:08 1.6
@@ -18,7 +18,7 @@
*/
/*
- * $Id: debug.c,v 1.5 2005/03/14 18:56:52 rousseau Exp $
+ * $Id: debug.c,v 1.6 2005/03/17 10:27:08 rousseau Exp $
*/
@@ -35,7 +35,7 @@
#define LOG_TO_STDERR
-void debug_msg(char *fmt, ...)
+void log_msg(const int priority, const char *fmt, ...)
{
va_list argptr;
@@ -46,9 +46,10 @@
#ifdef LOG_TO_STDERR
fprintf(stderr, "%s\n", DebugBuffer);
#endif
-} /* debug_msg */
+} /* log_msg */
-void debug_xxd(const char *msg, const unsigned char *buffer, const int len)
+void log_xxd(const int priority, const char *msg, const unsigned char *buffer,
+ const int len)
{
int i;
char *c, *debug_buf_end;
@@ -70,5 +71,5 @@
fprintf(stderr, "%s\n", DebugBuffer);
#endif
-} /* debug_xxd */
+} /* log_xxd */