|
SASC-NG
DVBSoftCAM
|
Go to the source code of this file.
Defines | |
| #define | dprintf(args...) tmprintf("", args) |
| #define | dprintf0(args...) tmprintf(DBG_NAME, args) |
| #define | dprintf1(args...) |
| #define | dprintf2(args...) |
| #define | dprintf3(args...) |
Enumerations | |
| enum | { DVBDBG_FRONTEND = 0, DVBDBG_DEMUX = 2, DVBDBG_DVR = 4, DVBDBG_CA = 6, DVBDBG_SID = 8, DVBDBG_IOCTL = 10, DVBDBG_RINGBUF = 12, DVBDBG_DSS = 14 } |
Functions | |
| int | tmprintf (const char *plugin, const char *fmt,...) |
Variables | |
| unsigned int | _dbglvl |
| #define dprintf | ( | args... | ) | tmprintf("", args) |
Definition at line 16 of file debug.h.
Referenced by init_osd(), listen_loop(), and main().
| #define dprintf0 | ( | args... | ) | tmprintf(DBG_NAME, args) |
Definition at line 17 of file debug.h.
Referenced by _SetCaDescr(), _SetCaPid(), add_pid(), check_encrypted(), connect_cam(), connect_scan(), fe_tune(), find_csa_from_rb(), forward_data(), init_sc(), open_call(), parseopt_cam(), parseopt_scan(), poll_call(), process_cam(), process_ffd(), process_scan(), process_ts(), rb_fill_bytes_block(), rb_release(), read_block(), read_call(), read_nit(), read_pat(), read_pmt(), read_sid(), scan_loop(), start(), and update_keys().
| #define dprintf1 | ( | args... | ) |
Definition at line 18 of file debug.h.
Referenced by _SetCaDescr(), _SetCaPid(), check_state(), connect_ffd(), find_csa_from_rb(), forward_data(), open_call(), process_cam(), process_ffd(), rb_fill_bytes_block(), rb_release(), read_block(), read_pmt(), read_sid(), replace_cat(), set_demux(), and update_keys().
| #define dprintf2 | ( | args... | ) |
Definition at line 20 of file debug.h.
Referenced by forward_data(), read_pat(), read_sid(), and start().
| #define dprintf3 | ( | args... | ) |
Definition at line 22 of file debug.h.
Referenced by find_pid(), forward_data(), process_ts(), read_pmt(), and start().
| anonymous enum |
| DVBDBG_FRONTEND | |
| DVBDBG_DEMUX | |
| DVBDBG_DVR | |
| DVBDBG_CA | |
| DVBDBG_SID | |
| DVBDBG_IOCTL | |
| DVBDBG_RINGBUF | |
| DVBDBG_DSS |
Definition at line 3 of file debug.h.
{
DVBDBG_FRONTEND = 0,
DVBDBG_DEMUX = 2,
DVBDBG_DVR = 4,
DVBDBG_CA = 6,
DVBDBG_SID = 8,
DVBDBG_IOCTL = 10,
DVBDBG_RINGBUF = 12,
DVBDBG_DSS = 14,
};
| int tmprintf | ( | const char * | plugin, |
| const char * | fmt, | ||
| ... | |||
| ) |
Definition at line 79 of file forward.c.
Referenced by demux_ioctl(), fe_ioctl(), listen_loop(), LogPrintSasc(), and msg_loop().
{
va_list args;
struct timeval tv;
struct tm tm;
unsigned long usec;
char stamp[32], logmsg[1024];
gettimeofday(&tv, NULL);
localtime_r(&tv.tv_sec, &tm);
strftime(stamp,sizeof(stamp),"%b %e %T",localtime_r(&tv.tv_sec, &tm));
usec = tv.tv_usec;
pthread_mutex_lock(&tmprintf_mutex);
/*
** Display the remainder of the message
*/
va_start(args,fmt);
vsnprintf(logmsg,sizeof(logmsg),fmt,args);
va_end(args);
if(logcfg.logmode & LOGMODE_STDOUT)
fprintf(stdout, "%s.%03lu %s: %s", stamp, usec/1000, plugin, logmsg);
if(logcfg.logmode & LOGMODE_SYSLOG)
syslog(LOG_INFO, "%s: %s", plugin, logmsg);
pthread_mutex_unlock(&tmprintf_mutex);
return 0;
}
| unsigned int _dbglvl |
Definition at line 61 of file forward.c.
Referenced by demux_ioctl(), fe_ioctl(), init_sc(), listen_loop(), main(), and process_ts().