[Pcsclite-cvs-commit] r5708 - in /trunk/PCSC/src: PCSC/debuglog.h debuglog.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed May 4 14:57:32 UTC 2011
Author: rousseau
Date: Wed May 4 14:57:30 2011
New Revision: 5708
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5708
Log:
Remove support of DebugLogSuppress()
This function is not used anywhere in pcsc-lite.
Modified:
trunk/PCSC/src/PCSC/debuglog.h
trunk/PCSC/src/debuglog.c
Modified: trunk/PCSC/src/PCSC/debuglog.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/PCSC/debuglog.h?rev=5708&op=diff
==============================================================================
--- trunk/PCSC/src/PCSC/debuglog.h (original)
+++ trunk/PCSC/src/PCSC/debuglog.h Wed May 4 14:57:30 2011
@@ -36,9 +36,6 @@
#ifndef PCSC_API
#define PCSC_API
#endif
-
-#define DEBUGLOG_LOG_ENTRIES 1
-#define DEBUGLOG_IGNORE_ENTRIES 2
enum {
DEBUGLOG_NO_DEBUG = 0,
Modified: trunk/PCSC/src/debuglog.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/debuglog.c?rev=5708&op=diff
==============================================================================
--- trunk/PCSC/src/debuglog.c (original)
+++ trunk/PCSC/src/debuglog.c Wed May 4 14:57:30 2011
@@ -51,11 +51,6 @@
(void)len;
}
-void DebugLogSuppress(const int lSType)
-{
- (void)lSType;
-}
-
void DebugLogSetLogType(const int dbgtype)
{
(void)dbgtype;
@@ -89,7 +84,6 @@
*/
#define DEBUG_BUF_SIZE 2048
-static char LogSuppress = DEBUGLOG_LOG_ENTRIES;
static char LogMsgType = DEBUGLOG_NO_DEBUG;
static char LogCategory = DEBUG_CATEGORY_NOTHING;
@@ -105,8 +99,7 @@
char DebugBuffer[DEBUG_BUF_SIZE];
va_list argptr;
- if ((LogSuppress != DEBUGLOG_LOG_ENTRIES)
- || (priority < LogLevel) /* log priority lower than threshold? */
+ if ((priority < LogLevel) /* log priority lower than threshold? */
|| (DEBUGLOG_NO_DEBUG == LogMsgType))
return;
@@ -206,18 +199,12 @@
void log_xxd(const int priority, const char *msg, const unsigned char *buffer,
const int len)
{
- if ((LogSuppress != DEBUGLOG_LOG_ENTRIES)
- || (priority < LogLevel) /* log priority lower than threshold? */
+ if ((priority < LogLevel) /* log priority lower than threshold? */
|| (DEBUGLOG_NO_DEBUG == LogMsgType))
return;
log_xxd_always(priority, msg, buffer, len);
} /* log_xxd */
-
-void DebugLogSuppress(const int lSType)
-{
- LogSuppress = lSType;
-}
void DebugLogSetLogType(const int dbgtype)
{
@@ -331,8 +318,7 @@
char DebugBuffer[DEBUG_BUF_SIZE];
va_list argptr;
- if ((LogSuppress != DEBUGLOG_LOG_ENTRIES)
- || (DEBUGLOG_NO_DEBUG == LogMsgType))
+ if (DEBUGLOG_NO_DEBUG == LogMsgType)
return;
va_start(argptr, fmt);
More information about the Pcsclite-cvs-commit
mailing list