80 #ifndef __wimaxll__log_h__
81 #define __wimaxll__log_h__
87 #error Please #define W_VERBOSITY before including this file
109 __attribute__ ((format(printf, 2, 3)));
111 void wimaxll_lmsg(
unsigned level,
unsigned current_level,
112 const
char *origin_str,
unsigned origin_line,
114 __attribute__ ((format(printf, 6, 7)));
117 const
char *, const
char *, va_list);
119 const
char *, const
char *, va_list);
122 enum
w_levels, const
char *,
unsigned);
124 enum w_levels, const
char *,
unsigned);
126 void w_abort(
int result, const
char *fmt, ...);
128 #define w_error(fmt...) wimaxll_lmsg(W_ERROR, W_VERBOSITY, __func__, __LINE__, NULL, "E: " fmt)
129 #define w_warn(fmt...) wimaxll_lmsg(W_WARN, W_VERBOSITY, __func__, __LINE__, NULL, "W: " fmt)
130 #define w_info(fmt...) wimaxll_lmsg(W_INFO, W_VERBOSITY, __func__, __LINE__, NULL, "I: " fmt)
131 #define w_print(fmt...) wimaxll_lmsg(W_PRINT, W_VERBOSITY, __func__, __LINE__, NULL, fmt)
132 #define w_d0(fmt...) wimaxll_lmsg(W_D0, W_VERBOSITY, __func__, __LINE__, NULL, "D0: " fmt)
133 #define w_d1(fmt...) wimaxll_lmsg(W_D1, W_VERBOSITY, __func__, __LINE__, NULL, "D1: " fmt)
134 #define w_d2(fmt...) wimaxll_lmsg(W_D2, W_VERBOSITY, __func__, __LINE__, NULL, "D2: " fmt)
135 #define w_d3(fmt...) wimaxll_lmsg(W_D3, W_VERBOSITY, __func__, __LINE__, NULL, "D3: " fmt)
136 #define w_d4(fmt...) wimaxll_lmsg(W_D4, W_VERBOSITY, __func__, __LINE__, NULL, "D4: " fmt)
137 #define w_d5(fmt...) wimaxll_lmsg(W_D5, W_VERBOSITY, __func__, __LINE__, NULL, "D5: " fmt)
138 #define w_d6(fmt...) wimaxll_lmsg(W_D6, W_VERBOSITY, __func__, __LINE__, NULL, "D6: " fmt)
139 #define w_d7(fmt...) wimaxll_lmsg(W_D7, W_VERBOSITY, __func__, __LINE__, NULL, "D7: " fmt)
A WiMax control pipe handle.
Definition: internal.h:219
void wimaxll_msg(struct wimaxll_handle *, const char *fmt,...) __attribute__((format(printf
void void void(* wimaxll_vlmsg_cb)(struct wimaxll_handle *, unsigned, const char *, const char *, va_list)
Print library diagnostics messages [backend].
Definition: log.c:118
void wimaxll_vlmsg_stderr(struct wimaxll_handle *, unsigned, const char *, const char *, va_list)
void w_abort(int result, const char *fmt,...)
Definition: wimaxll.c:101
w_levels
Definition: log.h:91
void(* wimaxll_msg_hdr_cb)(char *, size_t, struct wimaxll_handle *, enum w_levels, const char *, unsigned)
Create a header for library diagnostic messages [backend].
Definition: log.c:190
void wimaxll_msg_hdr_default(char *, size_t, struct wimaxll_handle *, enum w_levels, const char *, unsigned)
Default header for diagnostic messages.
Definition: log.c:133
void void wimaxll_lmsg(unsigned level, unsigned current_level, const char *origin_str, unsigned origin_line, struct wimaxll_handle *wmx, const char *fmt,...) __attribute__((format(printf