Cern
LibTmsApi 2.3.0
BDebug.h File Reference
#include <stdio.h>
#include <syslog.h>
#include <time.h>

Classes

class  BDebugBacktrace
 

Macros

#define BDebug_STD   0x000001
 
#define dprintf(level, fmt, a...)
 General debug functions.
 
#define nprintf(fmt, a...)   syslog(LOG_NOTICE, fmt, ##a)
 Warnings and errors logging.
 
#define wprintf(fmt, a...)   syslog(LOG_WARNING, fmt, ##a)
 
#define eprintf(fmt, a...)   syslog(LOG_ERR, fmt, ##a)
 

Functions

void hd8 (void *data, unsigned int n)
 
void hd8a (void *data, unsigned int n)
 
void hda8 (void *data, unsigned int n)
 
void hd32 (void *data, unsigned int n)
 
void hds32 (void *data, unsigned int n)
 
double getTime ()
 
void setDebug (int debug)
 
void tprintf (int log, const char *fmt,...)
 
pid_t gettid ()
 

Variables

int bdebug
 

Macro Definition Documentation

◆ BDebug_STD

#define BDebug_STD   0x000001

◆ dprintf

#define dprintf (   level,
  fmt,
  a... 
)

General debug functions.

◆ eprintf

#define eprintf (   fmt,
  a... 
)    syslog(LOG_ERR, fmt, ##a)

◆ nprintf

#define nprintf (   fmt,
  a... 
)    syslog(LOG_NOTICE, fmt, ##a)

Warnings and errors logging.

◆ wprintf

#define wprintf (   fmt,
  a... 
)    syslog(LOG_WARNING, fmt, ##a)

Function Documentation

◆ gettid()

pid_t gettid ( )

◆ getTime()

double getTime ( )

◆ hd32()

void hd32 ( void *  data,
unsigned int  n 
)

◆ hd8()

void hd8 ( void *  data,
unsigned int  n 
)

◆ hd8a()

void hd8a ( void *  data,
unsigned int  n 
)

◆ hda8()

void hda8 ( void *  data,
unsigned int  n 
)

◆ hds32()

void hds32 ( void *  data,
unsigned int  n 
)

◆ setDebug()

void setDebug ( int  debug)

◆ tprintf()

void tprintf ( int  log,
const char *  fmt,
  ... 
)

Variable Documentation

◆ bdebug

int bdebug
extern