44typedef void (*
dvb_logfunc)(
int level,
const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
66#ifndef __DVB_FE_PRIV_H
68#define dvb_loglevel(level, fmt, arg...) do {\
70 dvb_logfunc_priv f = dvb_get_log_priv(parms, &priv);\
72 f(priv, level, fmt, ##arg);\
74 parms->logfunc(level, fmt, ##arg); \
80#define dvb_loglevel(level, fmt, arg...) do {\
81 if (parms->logfunc_priv) {\
82 parms->logfunc_priv(parms->logpriv, level, fmt, ##arg);\
84 parms->p.logfunc(level, fmt, ##arg); \
90#define dvb_log(fmt, arg...) dvb_loglevel(LOG_INFO, fmt, ##arg)
91#define dvb_logerr(fmt, arg...) dvb_loglevel(LOG_ERR, fmt, ##arg)
92#define dvb_logdbg(fmt, arg...) dvb_loglevel(LOG_DEBUG, fmt, ##arg)
93#define dvb_logwarn(fmt, arg...) dvb_loglevel(LOG_WARNING, fmt, ##arg)
94#define dvb_loginfo(fmt, arg...) dvb_loglevel(LOG_NOTICE, fmt, ##arg)
96#define dvb_perror(msg) dvb_logerr("%s: %s", msg, strerror(errno))
108void dvb_default_log(
int level,
const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
void(* dvb_logfunc_priv)(void *logpriv, int level, const char *fmt,...)
void(* dvb_logfunc)(int level, const char *fmt,...)
void dvb_default_log(int level, const char *fmt,...)
This is the prototype of the internal log function that it is used, if the library client doesn't des...
Keeps data needed to handle the DVB frontend.