Lines Matching defs:format
335 void rprintf(enum logcode code, const char *format, ...)
341 va_start(ap, format);
342 len = vsnprintf(buf, sizeof buf, format, ap);
362 * If the input format string has a trailing newline,
366 if (format[strlen(format)-1] == '\n') {
378 * one in the format string.
382 void rsyserr(enum logcode code, int errcode, const char *format, ...)
391 va_start(ap, format);
392 len += vsnprintf(buf + len, sizeof buf - len, format, ap);
421 static void log_formatted(enum logcode code, char *format, char *op,
434 * rather keep going until we reach the null of the format. */
435 total = strlcpy(buf, format, sizeof buf);
437 rprintf(FERROR, "log-format string is WAY too long!\n");
668 /* Return 1 if the format escape is in the log-format string (e.g. look for
669 * the 'b' in the "%9b" format escape). */
670 int log_format_has(const char *format, char esc)
674 if (!format)
677 for (p = format; (p = strchr(p, '%')) != NULL; ) {