Lines Matching defs:fmt
270 pjdlog_prefix_set(const char *fmt, ...)
276 va_start(ap, fmt);
277 pjdlogv_prefix_set(fmt, ap);
286 pjdlogv_prefix_set(const char *fmt, va_list ap)
291 assert(fmt != NULL);
295 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap);
333 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...)
339 va_start(ap, fmt);
340 pjdlogv_common(loglevel, debuglevel, error, fmt, ap);
349 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
399 vfprintf(out, fmt, ap);
413 len += vsnprintf(log + len, sizeof(log) - len, fmt, ap);
432 pjdlogv(int loglevel, const char *fmt, va_list ap)
443 pjdlogv_common(loglevel, 0, -1, fmt, ap);
450 pjdlog(int loglevel, const char *fmt, ...)
456 va_start(ap, fmt);
457 pjdlogv(loglevel, fmt, ap);
465 pjdlogv_debug(int debuglevel, const char *fmt, va_list ap)
470 pjdlogv_common(LOG_DEBUG, debuglevel, -1, fmt, ap);
477 pjdlog_debug(int debuglevel, const char *fmt, ...)
483 va_start(ap, fmt);
484 pjdlogv_debug(debuglevel, fmt, ap);
492 pjdlogv_errno(int loglevel, const char *fmt, va_list ap)
497 pjdlogv_common(loglevel, 0, errno, fmt, ap);
504 pjdlog_errno(int loglevel, const char *fmt, ...)
510 va_start(ap, fmt);
511 pjdlogv_errno(loglevel, fmt, ap);
519 pjdlogv_exit(int exitcode, const char *fmt, va_list ap)
524 pjdlogv_errno(LOG_ERR, fmt, ap);
533 pjdlog_exit(int exitcode, const char *fmt, ...)
539 va_start(ap, fmt);
540 pjdlogv_exit(exitcode, fmt, ap);
549 pjdlogv_exitx(int exitcode, const char *fmt, va_list ap)
554 pjdlogv(LOG_ERR, fmt, ap);
563 pjdlog_exitx(int exitcode, const char *fmt, ...)
569 va_start(ap, fmt);
570 pjdlogv_exitx(exitcode, fmt, ap);
580 const char *failedexpr, const char *fmt, ...)
587 * When there is no message we pass __func__ as 'fmt'.
591 if (fmt != func) {
592 va_start(ap, fmt);
593 pjdlogv_critical(fmt, ap);