openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
eerror.cpp File Reference
#include <lib/base/cfile.h>
#include <lib/base/eerror.h>
#include <lib/base/elock.h>
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <time.h>
#include <string>

Macros

#define RINGBUFFER_SIZE   16384
 
#define eDEBUG_BUFLEN   1024
 

Functions

static void logOutput (const char *data, unsigned int len)
 
void retrieveLogBuffer (const char **p1, unsigned int *s1, const char **p2, unsigned int *s2)
 
void bsodFatal (const char *component)
 
int formatTime (char *buf, int bufferSize, int flags)
 
void eDebugImpl (int flags, const char *fmt,...)
 
void ePythonOutput (const char *string, int lvl)
 
int eGetEnigmaDebugLvl ()
 
void setDebugTime (int flags)
 

Variables

int debugLvl = lvlDebug
 
static int debugTime = 2
 
static pthread_mutex_t DebugLock = PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
 
static char ringbuffer [RINGBUFFER_SIZE]
 
static unsigned int ringbuffer_head
 

Macro Definition Documentation

◆ eDEBUG_BUFLEN

#define eDEBUG_BUFLEN   1024

◆ RINGBUFFER_SIZE

#define RINGBUFFER_SIZE   16384

Function Documentation

◆ bsodFatal()

void bsodFatal ( const char *  component)

◆ eDebugImpl()

void eDebugImpl ( int  flags,
const char *  fmt,
  ... 
)

◆ eGetEnigmaDebugLvl()

int eGetEnigmaDebugLvl ( )

◆ ePythonOutput()

void ePythonOutput ( const char *  string,
int  lvl 
)

◆ formatTime()

int formatTime ( char *  buf,
int  bufferSize,
int  flags 
)

◆ logOutput()

static void logOutput ( const char *  data,
unsigned int  len 
)
static

◆ retrieveLogBuffer()

void retrieveLogBuffer ( const char **  p1,
unsigned int *  s1,
const char **  p2,
unsigned int *  s2 
)

◆ setDebugTime()

void setDebugTime ( int  flags)

Variable Documentation

◆ DebugLock

pthread_mutex_t DebugLock = PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
static

◆ debugLvl

int debugLvl = lvlDebug

◆ debugTime

int debugTime = 2
static

◆ ringbuffer

char ringbuffer[RINGBUFFER_SIZE]
static

◆ ringbuffer_head

unsigned int ringbuffer_head
static