<!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.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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 class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="dir_c68a5dfdca54003c765e303a18006edb.html">src</a> </div> </div> <div class="contents"> <h1>debuglog.c File Reference</h1> <p>This handles debugging for pcscd. <a href="#_details">More...</a></p> <code>#include "config.h"</code><br/> <code>#include <syslog.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 "<a class="el" href="pcsclite_8h_source.html">pcsclite.h</a>"</code><br/> <code>#include "misc.h"</code><br/> <code>#include "<a class="el" href="debuglog_8h_source.html">debuglog.h</a>"</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 class="dynheader"> Include dependency graph for debuglog.c:</div> <div class="dynsection"> </div> <p><a href="debuglog_8c_source.html">Go to the source code of this file.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>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>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="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>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> <p>This handles debugging for pcscd. </p> <p>Definition in file <a class="el" href="debuglog_8c_source.html">debuglog.c</a>.</p> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>