45 typedef void (*
dvb_logfunc)(
int level,
const char *fmt, ...) __attribute__ (( format( printf, 2, 3 )));
53 #ifndef __DVB_FE_PRIV_H 55 #define dvb_log(fmt, arg...) do {\ 56 parms->logfunc(LOG_INFO, fmt, ##arg); \ 58 #define dvb_logerr(fmt, arg...) do {\ 59 parms->logfunc(LOG_ERR, fmt, ##arg); \ 61 #define dvb_logdbg(fmt, arg...) do {\ 62 parms->logfunc(LOG_DEBUG, fmt, ##arg); \ 64 #define dvb_logwarn(fmt, arg...) do {\ 65 parms->logfunc(LOG_WARNING, fmt, ##arg); \ 67 #define dvb_loginfo(fmt, arg...) do {\ 68 parms->logfunc(LOG_NOTICE, fmt, ##arg); \ 71 #define dvb_perror(msg) do {\ 72 parms->logfunc(LOG_ERR, "%s: %s", msg, strerror(errno)); \ 77 #define dvb_log(fmt, arg...) do {\ 78 parms->p.logfunc(LOG_INFO, fmt, ##arg); \ 80 #define dvb_logerr(fmt, arg...) do {\ 81 parms->p.logfunc(LOG_ERR, fmt, ##arg); \ 83 #define dvb_logdbg(fmt, arg...) do {\ 84 parms->p.logfunc(LOG_DEBUG, fmt, ##arg); \ 86 #define dvb_logwarn(fmt, arg...) do {\ 87 parms->p.logfunc(LOG_WARNING, fmt, ##arg); \ 89 #define dvb_loginfo(fmt, arg...) do {\ 90 parms->p.logfunc(LOG_NOTICE, fmt, ##arg); \ 93 #define dvb_perror(msg) do {\ 94 parms->p.logfunc(LOG_ERR, "%s: %s", msg, strerror(errno)); \ 109 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