Lines Matching defs:fmt
274 pjdlog_prefix_set(const char *fmt, ...)
280 va_start(ap, fmt);
281 pjdlogv_prefix_set(fmt, ap);
290 pjdlogv_prefix_set(const char *fmt, va_list ap)
295 assert(fmt != NULL);
299 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap);
337 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...)
343 va_start(ap, fmt);
344 pjdlogv_common(loglevel, debuglevel, error, fmt, ap);
353 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
404 vfprintf(out, fmt, ap);
418 len += vsnprintf(log + len, sizeof(log) - len, fmt, ap);
437 pjdlogv(int loglevel, const char *fmt, va_list ap)
448 pjdlogv_common(loglevel, 0, -1, fmt, ap);
455 pjdlog(int loglevel, const char *fmt, ...)
461 va_start(ap, fmt);
462 pjdlogv(loglevel, fmt, ap);
470 pjdlogv_debug(int debuglevel, const char *fmt, va_list ap)
475 pjdlogv_common(LOG_DEBUG, debuglevel, -1, fmt, ap);
482 pjdlog_debug(int debuglevel, const char *fmt, ...)
488 va_start(ap, fmt);
489 pjdlogv_debug(debuglevel, fmt, ap);
497 pjdlogv_errno(int loglevel, const char *fmt, va_list ap)
502 pjdlogv_common(loglevel, 0, errno, fmt, ap);
509 pjdlog_errno(int loglevel, const char *fmt, ...)
515 va_start(ap, fmt);
516 pjdlogv_errno(loglevel, fmt, ap);
524 pjdlogv_exit(int exitcode, const char *fmt, va_list ap)
529 pjdlogv_errno(LOG_ERR, fmt, ap);
538 pjdlog_exit(int exitcode, const char *fmt, ...)
544 va_start(ap, fmt);
545 pjdlogv_exit(exitcode, fmt, ap);
554 pjdlogv_exitx(int exitcode, const char *fmt, va_list ap)
559 pjdlogv(LOG_ERR, fmt, ap);
568 pjdlog_exitx(int exitcode, const char *fmt, ...)
574 va_start(ap, fmt);
575 pjdlogv_exitx(exitcode, fmt, ap);
585 const char *failedexpr, const char *fmt, ...)
592 * When there is no message we pass __func__ as 'fmt'.
596 if (fmt != func) {
597 va_start(ap, fmt);
598 pjdlogv_critical(fmt, ap);