<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>pcsc-lite: debuglog.c File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">pcsc-lite <span id="projectnumber">1.7.2</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_7a4553ee0c3b13d0e595a5d1659110a6.html">src</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#define-members">Defines</a> | <a href="#func-members">Functions</a> | <a href="#var-members">Variables</a> </div> <div class="headertitle"> <h1>debuglog.c File Reference</h1> </div> </div> <div class="contents"> <p>This handles debugging for pcscd. <a href="#_details">More...</a></p> <div class="textblock"><code>#include "config.h"</code><br/> <code>#include <unistd.h></code><br/> <code>#include <stdio.h></code><br/> <code>#include <stdlib.h></code><br/> <code>#include <string.h></code><br/> <code>#include <stdarg.h></code><br/> <code>#include <assert.h></code><br/> <code>#include <sys/types.h></code><br/> <code>#include <sys/time.h></code><br/> <code>#include <time.h></code><br/> <code>#include "pcsclite.h"</code><br/> <code>#include "misc.h"</code><br/> <code>#include "debuglog.h"</code><br/> <code>#include "<a class="el" href="sys__generic_8h_source.html">sys_generic.h</a>"</code><br/> <code>#include "<a class="el" href="strlcpycat_8h_source.html">strlcpycat.h</a>"</code><br/> </div><div class="textblock"><div class="dynheader"> Include dependency graph for debuglog.c:</div> <div class="dyncontent"> <div class="center"><img src="debuglog_8c__incl.png" border="0" usemap="#debuglog_8c" alt=""/></div> <map name="debuglog_8c" id="debuglog_8c"> <area shape="rect" id="node25" href="misc_8h_source.html" title="misc.h" alt="" coords="1040,83,1101,112"/><area shape="rect" id="node29" href="sys__generic_8h.html" title="This handles abstract system level calls." alt="" coords="1235,83,1336,112"/><area shape="rect" id="node35" href="strlcpycat_8h.html" title="prototypes of strlcpy()/strlcat() imported from OpenBSD" alt="" coords="1360,83,1451,112"/></map> </div> </div> <p><a href="debuglog_8c_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="define-members"></a> Defines</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a758f9da8805a79adbe236829c3802703"></a><!-- doxytag: member="debuglog.c::DEBUG_BUF_SIZE" ref="a758f9da8805a79adbe236829c3802703" args="" --> #define </td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#a758f9da8805a79adbe236829c3802703">DEBUG_BUF_SIZE</a>   2048</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Max string size when dumping a 256 bytes longs APDU Should be bigger than 256*3+30. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae348e3fa98fff148d977c7102eb43edc"></a><!-- doxytag: member="debuglog.c::DEBUG_INFO_LENGTH" ref="ae348e3fa98fff148d977c7102eb43edc" args="" --> #define </td><td class="memItemRight" valign="bottom"><b>DEBUG_INFO_LENGTH</b>   80</td></tr> <tr><td colspan="2"><h2><a name="func-members"></a> Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a31199b47af8a1b6bf688af0019e55c6c"></a><!-- doxytag: member="debuglog.c::log_line" ref="a31199b47af8a1b6bf688af0019e55c6c" args="(const int priority, const char *DebugBuffer)" --> static void </td><td class="memItemRight" valign="bottom"><b>log_line</b> (const int priority, const char *DebugBuffer)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a15dd86fc37d3115cc91255beffd9be89"></a><!-- doxytag: member="debuglog.c::log_msg" ref="a15dd86fc37d3115cc91255beffd9be89" args="(const int priority, const char *fmt,...)" --> void </td><td class="memItemRight" valign="bottom"><b>log_msg</b> (const int priority, const char *fmt,...)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9a14656367c5f33644a2c1b90aa83e97"></a><!-- doxytag: member="debuglog.c::log_xxd_always" ref="a9a14656367c5f33644a2c1b90aa83e97" args="(const int priority, const char *msg, const unsigned char *buffer, const int len)" --> static void </td><td class="memItemRight" valign="bottom"><b>log_xxd_always</b> (const int priority, const char *msg, const unsigned char *buffer, const int len)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80e78cc01cf59e77e4a9ced81df7747c"></a><!-- doxytag: member="debuglog.c::log_xxd" ref="a80e78cc01cf59e77e4a9ced81df7747c" args="(const int priority, const char *msg, const unsigned char *buffer, const int len)" --> void </td><td class="memItemRight" valign="bottom"><b>log_xxd</b> (const int priority, const char *msg, const unsigned char *buffer, const int len)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a95f79cd84134469df06de409b2774fb8"></a><!-- doxytag: member="debuglog.c::DebugLogSuppress" ref="a95f79cd84134469df06de409b2774fb8" args="(const int lSType)" --> void </td><td class="memItemRight" valign="bottom"><b>DebugLogSuppress</b> (const int lSType)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80da114839ae91a3ee976b5519a0d1f8"></a><!-- doxytag: member="debuglog.c::DebugLogSetLogType" ref="a80da114839ae91a3ee976b5519a0d1f8" args="(const int dbgtype)" --> void </td><td class="memItemRight" valign="bottom"><b>DebugLogSetLogType</b> (const int dbgtype)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9968a17a8ed23465d9c562886afca59"></a><!-- doxytag: member="debuglog.c::DebugLogSetLevel" ref="aa9968a17a8ed23465d9c562886afca59" args="(const int level)" --> void </td><td class="memItemRight" valign="bottom"><b>DebugLogSetLevel</b> (const int level)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a03f741c728a705002b8be8cba724a1f9"></a><!-- doxytag: member="debuglog.c::DebugLogSetCategory" ref="a03f741c728a705002b8be8cba724a1f9" args="(const int dbginfo)" --> INTERNAL int </td><td class="memItemRight" valign="bottom"><b>DebugLogSetCategory</b> (const int dbginfo)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af704db33dad5aa6b9d0f9f7a6de53353"></a><!-- doxytag: member="debuglog.c::DebugLogCategory" ref="af704db33dad5aa6b9d0f9f7a6de53353" args="(const int category, const unsigned char *buffer, const int len)" --> INTERNAL void </td><td class="memItemRight" valign="bottom"><b>DebugLogCategory</b> (const int category, const unsigned char *buffer, const int len)</td></tr> <tr><td colspan="2"><h2><a name="var-members"></a> Variables</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa51a123e1f1ea363d8fa4ff4bd28dda"></a><!-- doxytag: member="debuglog.c::LogSuppress" ref="afa51a123e1f1ea363d8fa4ff4bd28dda" args="" --> static char </td><td class="memItemRight" valign="bottom"><b>LogSuppress</b> = DEBUGLOG_LOG_ENTRIES</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19923113331304a13f9364e9b39a9397"></a><!-- doxytag: member="debuglog.c::LogMsgType" ref="a19923113331304a13f9364e9b39a9397" args="" --> static char </td><td class="memItemRight" valign="bottom"><b>LogMsgType</b> = DEBUGLOG_NO_DEBUG</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1243a627348fb8781418c0726832933a"></a><!-- doxytag: member="debuglog.c::LogCategory" ref="a1243a627348fb8781418c0726832933a" args="" --> static char </td><td class="memItemRight" valign="bottom"><b>LogCategory</b> = DEBUG_CATEGORY_NOTHING</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a731a4e24c38dae1ffdb9bed5abfe945f"></a><!-- doxytag: member="debuglog.c::LogLevel" ref="a731a4e24c38dae1ffdb9bed5abfe945f" args="" --> static char </td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#a731a4e24c38dae1ffdb9bed5abfe945f">LogLevel</a> = PCSC_LOG_ERROR</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">default level <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9814cd7cb6a5bdc3d3250f957821136"></a><!-- doxytag: member="debuglog.c::LogDoColor" ref="ad9814cd7cb6a5bdc3d3250f957821136" args="" --> static signed char </td><td class="memItemRight" valign="bottom"><a class="el" href="debuglog_8c.html#ad9814cd7cb6a5bdc3d3250f957821136">LogDoColor</a> = 0</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">no color by default <br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>This handles debugging for pcscd. </p> <p>Definition in file <a class="el" href="debuglog_8c_source.html">debuglog.c</a>.</p> </div></div> <hr class="footer"/><address class="footer"><small>Generated on Thu Mar 31 2011 for pcsc-lite by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>