44 typedef void (*
dvb_logfunc)(
int level,
const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
52 #ifndef __DVB_FE_PRIV_H
54 #define dvb_log(fmt, arg...) do {\
55 parms->logfunc(LOG_INFO, fmt, ##arg); \
57 #define dvb_logerr(fmt, arg...) do {\
58 parms->logfunc(LOG_ERR, fmt, ##arg); \
60 #define dvb_logdbg(fmt, arg...) do {\
61 parms->logfunc(LOG_DEBUG, fmt, ##arg); \
63 #define dvb_logwarn(fmt, arg...) do {\
64 parms->logfunc(LOG_WARNING, fmt, ##arg); \
66 #define dvb_loginfo(fmt, arg...) do {\
67 parms->logfunc(LOG_NOTICE, fmt, ##arg); \
70 #define dvb_perror(msg) do {\
71 parms->logfunc(LOG_ERR, "%s: %s", msg, strerror(errno)); \
76 #define dvb_log(fmt, arg...) do {\
77 parms->p.logfunc(LOG_INFO, fmt, ##arg); \
79 #define dvb_logerr(fmt, arg...) do {\
80 parms->p.logfunc(LOG_ERR, fmt, ##arg); \
82 #define dvb_logdbg(fmt, arg...) do {\
83 parms->p.logfunc(LOG_DEBUG, fmt, ##arg); \
85 #define dvb_logwarn(fmt, arg...) do {\
86 parms->p.logfunc(LOG_WARNING, fmt, ##arg); \
88 #define dvb_loginfo(fmt, arg...) do {\
89 parms->p.logfunc(LOG_NOTICE, fmt, ##arg); \
92 #define dvb_perror(msg) do {\
93 parms->p.logfunc(LOG_ERR, "%s: %s", msg, strerror(errno)); \
108 void dvb_default_log(
int level,
const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
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...
void(* dvb_logfunc)(int level, const char *fmt,...)
typedef used by dvb_fe_open2 for the log function