Lines Matching refs:log_fd
211 FILE *log_fd; in dsrv_log() local
216 log_fd = level <= DTLS_LOG_CRIT ? stderr : stdout; in dsrv_log()
219 fprintf(log_fd, "%s ", timebuf); in dsrv_log()
222 fprintf(log_fd, "%s ", loglevels[level]); in dsrv_log()
225 vfprintf(log_fd, format, ap); in dsrv_log()
227 fflush(log_fd); in dsrv_log()
292 FILE *log_fd; in dtls_dsrv_hexdump_log() local
298 log_fd = level <= DTLS_LOG_CRIT ? stderr : stdout; in dtls_dsrv_hexdump_log()
301 fprintf(log_fd, "%s ", timebuf); in dtls_dsrv_hexdump_log()
304 fprintf(log_fd, "%s ", loglevels[level]); in dtls_dsrv_hexdump_log()
307 fprintf(log_fd, "%s: (%zu bytes):\n", name, length); in dtls_dsrv_hexdump_log()
311 fprintf(log_fd, "%08X ", n); in dtls_dsrv_hexdump_log()
313 fprintf(log_fd, "%02X ", *buf++); in dtls_dsrv_hexdump_log()
318 fprintf(log_fd, "\n"); in dtls_dsrv_hexdump_log()
320 fprintf(log_fd, " "); in dtls_dsrv_hexdump_log()
324 fprintf(log_fd, "%s: (%zu bytes): ", name, length); in dtls_dsrv_hexdump_log()
326 fprintf(log_fd, "%02X", *buf++); in dtls_dsrv_hexdump_log()
328 fprintf(log_fd, "\n"); in dtls_dsrv_hexdump_log()
330 fflush(log_fd); in dtls_dsrv_hexdump_log()