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)
439 char buffer[32]; /* temporary buffer used to format numbers */
448 c = format[mm];
455 out_send(o, format+nn, mm-nn);
468 c = format[nn++];
492 width = (int)parse_decimal(format, &nn);
493 c = format[nn++];
498 prec = (int)parse_decimal(format, &nn);
499 c = format[nn++];
506 if (format[nn] == 'h') {
510 c = format[nn++];
514 if (format[nn] == 'l') {
518 c = format[nn++];
522 c = format[nn++];
526 c = format[nn++];
530 c = format[nn++];
573 /* format the number properly into our buffer */
654 utest_expect(const char* result, const char* format, ...)
661 printf("Checking %-*s: ", MARGIN, format); fflush(stdout);
662 va_start(args, format);
663 out_vformat(out, format, args);