pcsc-lite 1.9.9
Macros | Functions | Variables
debug.c File Reference

This handles debugging for libpcsclite. More...

#include "config.h"
#include "misc.h"
#include <stdarg.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include "debuglog.h"

Go to the source code of this file.

Macros

#define DEBUG_BUF_SIZE   2048
 

Functions

static void log_init (void)
 
void log_msg (const int priority, const char *fmt,...)
 

Variables

static char LogLevel = PCSC_LOG_CRITICAL+1
 default level is quiet to avoid polluting fd 2 (possibly NOT stderr)
 
static signed char LogDoColor = 0
 no color by default
 

Detailed Description

This handles debugging for libpcsclite.

Definition in file debug.c.

Macro Definition Documentation

◆ DEBUG_BUF_SIZE

#define DEBUG_BUF_SIZE   2048

Definition at line 51 of file debug.c.

Function Documentation

◆ log_init()

static void log_init ( void  )
static

Definition at line 68 of file debug.c.

◆ log_msg()

void log_msg ( const int  priority,
const char fmt,
  ... 
)

Definition at line 101 of file debug.c.

Variable Documentation

◆ LogDoColor

signed char LogDoColor = 0
static

no color by default

Definition at line 66 of file debug.c.

◆ LogLevel

char LogLevel = PCSC_LOG_CRITICAL+1
static

default level is quiet to avoid polluting fd 2 (possibly NOT stderr)

Definition at line 64 of file debug.c.