Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

debuglog.c File Reference

Detailed Description

This handles debugging.

Definition in file debuglog.c.

#include "config.h"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <sys/types.h>
#include "pcsclite.h"
#include "debuglog.h"
#include "sys_generic.h"
#include "strlcpycat.h"
#include "misc.h"

Go to the source code of this file.


#define DEBUG_BUF_SIZE   2048
#define DEBUG_INFO_LENGTH   80


INTERNAL void DebugLogCategory (const int category, const unsigned char *buffer, const int len)
INTERNAL int DebugLogSetCategory (const int dbginfo)
void DebugLogSetLevel (const int level)
void DebugLogSetLogType (const int dbgtype)
void log_msg (const int priority, const char *fmt,...)
void log_xxd (const int priority, const char *msg, const unsigned char *buffer, const int len)
char * pcsc_stringify_error (long pcscError)
 This function return a human readable text for the given PC/SC error code.


static char LogCategory = DEBUG_CATEGORY_NOTHING
static signed char LogDoColor = 0
static char LogLevel = PCSC_LOG_INFO
static char LogMsgType = DEBUGLOG_NO_DEBUG
static char LogSuppress = DEBUGLOG_LOG_ENTRIES

Generated by  Doxygen 1.6.0   Back to index