[Pcsclite-cvs-commit] r1989 - trunk/PCSC/doc
    Ludovic Rousseau 
    rousseau at costa.debian.org
       
    Fri Mar 31 16:19:19 CEST 2006
    
    
  
Author: rousseau
Date: 2006-03-31 14:19:18 +0000 (Fri, 31 Mar 2006)
New Revision: 1989
Modified:
   trunk/PCSC/doc/ifdhandler-3.tex
Log:
log_msg: document that you should use the macros defined in <debuglog.h>
Modified: trunk/PCSC/doc/ifdhandler-3.tex
===================================================================
--- trunk/PCSC/doc/ifdhandler-3.tex	2006-03-30 09:14:24 UTC (rev 1988)
+++ trunk/PCSC/doc/ifdhandler-3.tex	2006-03-31 14:19:18 UTC (rev 1989)
@@ -1127,11 +1127,14 @@
 priority \texttt{PCSC\_LOG\_INFO}, \texttt{PCSC\_LOG\_ERROR} and
 \texttt{PCSC\_LOG\_CRITICAL} are displayed.
 
+You should not use \texttt{log\_msg} directly but use the
+\texttt{Logx()} macros defined in \file{<debuglog.h>} instead. Using the
+macro you will also get the file name, line number and function name the
+macro is called from.
 
 \example
 \begin{verbatim}
-#define Log2(priority, fmt, data) log_msg(priority, "%s:%d:%s " fmt, \
-    __FILE__, __LINE__, __FUNCTION__, data)
+#include <debuglog.h>
 
 Log2("received bytes: %d", r);
 \end{verbatim}
    
    
More information about the Pcsclite-cvs-commit
mailing list