Lines Matching refs:format
76 out_vformat(Out *o, const char *format, va_list args);
136 vformat_buffer(char *buff, size_t buffsize, const char *format, va_list args)
145 out_vformat(out, format, args);
151 format_buffer(char *buff, size_t buffsize, const char *format, ...)
156 va_start(args, format);
157 ret = vformat_buffer(buff, buffsize, format, args);
170 vsnprintf(char *buff, size_t bufsize, const char *format, va_list args)
172 return format_buffer(buff, bufsize, format, args);
228 format_fd(int fd, const char *format, ...)
238 va_start(args, format);
239 out_vformat(out, format, args);
300 extern int __libc_android_log_vprint(int prio, const char* tag, const char* format, va_list ap);
305 format_log(int prio, const char *tag, const char *format, ...)
309 va_start(args, format);
310 ret = __libc_android_log_vprint(prio, tag, format, args);
322 /* Parse a decimal string from 'format + *ppos',
329 parse_decimal(const char *format, int *ppos)
331 const char* p = format + *ppos;
344 *ppos = p - format;
428 out_vformat(Out *o, const char *format, va_list args)
442 char buffer[32]; /* temporary buffer used to format numbers */
450 c = format[mm];
457 out_send(o, format+nn, mm-nn);
470 c = format[nn++];
494 width = (int)parse_decimal(format, &nn);
495 c = format[nn++];
500 prec = (int)parse_decimal(format, &nn);
501 c = format[nn++];
508 if (format[nn] == 'h') {
512 c = format[nn++];
516 if (format[nn] == 'l') {
520 c = format[nn++];
524 c = format[nn++];
528 c = format[nn++];
572 /* format the number properly into our buffer */
653 utest_expect(const char* result, const char* format, ...)
660 printf("Checking %-*s: ", MARGIN, format); fflush(stdout);
661 va_start(args, format);
662 out_vformat(out, format, args);