Lines Matching refs:level

63 dtls_set_log_level(log_t level) {  in dtls_set_log_level()  argument
64 maxlog = level; in dtls_set_log_level()
208 dsrv_log(log_t level, char *format, ...) { in dsrv_log() argument
213 if (maxlog < level) in dsrv_log()
216 log_fd = level <= DTLS_LOG_CRIT ? stderr : stdout; in dsrv_log()
221 if (level <= DTLS_LOG_DEBUG) in dsrv_log()
222 fprintf(log_fd, "%s ", loglevels[level]); in dsrv_log()
231 dsrv_log(log_t level, char *format, ...) { in dsrv_log() argument
235 if (maxlog < level) in dsrv_log()
241 if (level <= DTLS_LOG_DEBUG) in dsrv_log()
242 PRINTF("%s ", loglevels[level]); in dsrv_log()
277 void dtls_dsrv_log_addr(log_t level, const char *name, const session_t *addr) in dtls_dsrv_log_addr() argument
285 dsrv_log(level, "%s: %s\n", name, addrbuf); in dtls_dsrv_log_addr()
290 dtls_dsrv_hexdump_log(log_t level, const char *name, const unsigned char *buf, size_t length, int e… in dtls_dsrv_hexdump_log() argument
295 if (maxlog < level) in dtls_dsrv_hexdump_log()
298 log_fd = level <= DTLS_LOG_CRIT ? stderr : stdout; in dtls_dsrv_hexdump_log()
303 if (level <= DTLS_LOG_DEBUG) in dtls_dsrv_hexdump_log()
304 fprintf(log_fd, "%s ", loglevels[level]); in dtls_dsrv_hexdump_log()
334 dtls_dsrv_hexdump_log(log_t level, const char *name, const unsigned char *buf, size_t length, int e… in dtls_dsrv_hexdump_log() argument
338 if (maxlog < level) in dtls_dsrv_hexdump_log()
344 if (level >= 0 && level <= DTLS_LOG_DEBUG) in dtls_dsrv_hexdump_log()
345 PRINTF("%s ", loglevels[level]); in dtls_dsrv_hexdump_log()