Lines Matching refs:format
138 static unsigned parse_decimal(const char* format, int* ppos) { in parse_decimal() argument
139 const char* p = format + *ppos; in parse_decimal()
153 *ppos = p - format; in parse_decimal()
233 static void out_vformat(Out& o, const char* format, va_list args) { in out_vformat() argument
253 c = format[mm]; in out_vformat()
259 o.Send(format + nn, mm - nn); in out_vformat()
271 c = format[nn++]; in out_vformat()
292 width = static_cast<int>(parse_decimal(format, &nn)); in out_vformat()
293 c = format[nn++]; in out_vformat()
298 prec = static_cast<int>(parse_decimal(format, &nn)); in out_vformat()
299 c = format[nn++]; in out_vformat()
306 if (format[nn] == 'h') { in out_vformat()
310 c = format[nn++]; in out_vformat()
314 if (format[nn] == 'l') { in out_vformat()
318 c = format[nn++]; in out_vformat()
322 c = format[nn++]; in out_vformat()
326 c = format[nn++]; in out_vformat()
412 int async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, in async_safe_format_buffer_va_list() argument
415 out_vformat(os, format, args); in async_safe_format_buffer_va_list()
419 int async_safe_format_buffer(char* buffer, size_t buffer_size, const char* format, ...) { in async_safe_format_buffer() argument
421 va_start(args, format); in async_safe_format_buffer()
422 int buffer_len = async_safe_format_buffer_va_list(buffer, buffer_size, format, args); in async_safe_format_buffer()
427 int async_safe_format_fd_va_list(int fd, const char* format, va_list args) { in async_safe_format_fd_va_list() argument
429 out_vformat(os, format, args); in async_safe_format_fd_va_list()
433 int async_safe_format_fd(int fd, const char* format, ...) { in async_safe_format_fd() argument
435 va_start(args, format); in async_safe_format_fd()
436 int result = async_safe_format_fd_va_list(fd, format, args); in async_safe_format_fd()
523 int async_safe_format_log_va_list(int priority, const char* tag, const char* format, va_list args) { in async_safe_format_log_va_list() argument
527 out_vformat(os, format, args); in async_safe_format_log_va_list()
531 int async_safe_format_log(int priority, const char* tag, const char* format, ...) { in async_safe_format_log() argument
533 va_start(args, format); in async_safe_format_log()
534 int result = async_safe_format_log_va_list(priority, tag, format, args); in async_safe_format_log()
539 void async_safe_fatal_va_list(const char* prefix, const char* format, va_list args) { in async_safe_fatal_va_list() argument
548 out_vformat(os, format, args); in async_safe_fatal_va_list()