Electronics and Software
Engineering Innovation
Beam-lib  2.15.1
BDebug.h File Reference
#include <stdio.h>
#include <time.h>
#include <syslog.h>

Classes

class  BDebugBacktrace
 

Macros

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

Functions

void bhd8 (const void *data, unsigned int n)
 
void bhd8a (const void *data, unsigned int n)
 
void bhda8 (const void *data, unsigned int n)
 
void bhd32 (const void *data, unsigned int n)
 
void bhds32 (const 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

◆ dl1printf

#define dl1printf (   fmt,
  a... 
)

◆ dl2printf

#define dl2printf (   fmt,
  a... 
)

◆ dl3printf

#define dl3printf (   fmt,
  a... 
)

◆ dl4printf

#define dl4printf (   fmt,
  a... 
)

◆ 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

◆ bhd32()

void bhd32 ( const void *  data,
unsigned int  n 
)

◆ bhd8()

void bhd8 ( const void *  data,
unsigned int  n 
)

◆ bhd8a()

void bhd8a ( const void *  data,
unsigned int  n 
)

◆ bhda8()

void bhda8 ( const void *  data,
unsigned int  n 
)

◆ bhds32()

void bhds32 ( const void *  data,
unsigned int  n 
)

◆ gettid()

pid_t gettid ( )

◆ getTime()

double getTime ( )

◆ setDebug()

void setDebug ( int  debug)

◆ tprintf()

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

Variable Documentation

◆ bdebug

int bdebug