MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / dp_log_level_str

Function dp_log_level_str

dprint.h:210–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static inline const char *dp_log_level_str(int log_level)
211{
212 const char *level_str;
213
214 switch (log_level) {
215 case L_ALERT:
216 level_str = DP_ALERT_STR;
217 break;
218 case L_CRIT:
219 level_str = DP_CRIT_STR;
220 break;
221 case L_ERR:
222 level_str = DP_ERR_STR;
223 break;
224 case L_WARN:
225 level_str = DP_WARN_STR;
226 break;
227 case L_NOTICE:
228 level_str = DP_NOTICE_STR;
229 break;
230 case L_INFO:
231 level_str = DP_INFO_STR;
232 break;
233 case L_DBG:
234 default:
235 level_str = DP_DBG_STR;
236 }
237
238 return level_str;
239}
240
241#define is_printable(_level) (((int)(*log_level)) >= ((int)(_level)))
242

Callers 3

stderr_dprintFunction · 0.85
syslog_dprintFunction · 0.85
event_dprintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected