/bionic/linker/ |
D | linker_globals.h | 39 #define DL_ERR(fmt, x...) \ argument 41 … async_safe_format_buffer(linker_get_error_buffer(), linker_get_error_buffer_size(), fmt, ##x); \ 44 #define DL_WARN(fmt, x...) \ argument 46 async_safe_format_log(ANDROID_LOG_WARN, "linker", fmt, ##x); \ 48 async_safe_format_fd(2, fmt, ##x); \ 52 void DL_WARN_documented_change(int api_level, const char* doc_link, const char* fmt, ...); 54 #define DL_ERR_AND_LOG(fmt, x...) \ argument 56 DL_ERR(fmt, ##x); \ 57 PRINT(fmt, ##x); \ 60 #define DL_OPEN_ERR(fmt, x...) \ argument [all …]
|
D | linker_debug.cpp | 33 void linker_log_va_list(int prio __unused, const char* fmt, va_list ap) { in linker_log_va_list() argument 35 async_safe_format_log_va_list(5 - prio, "linker", fmt, ap); in linker_log_va_list() 37 async_safe_format_fd_va_list(STDOUT_FILENO, fmt, ap); in linker_log_va_list() 42 void linker_log(int prio, const char* fmt, ...) { in linker_log() argument 44 va_start(ap, fmt); in linker_log() 45 linker_log_va_list(prio, fmt, ap); in linker_log()
|
D | linker_globals.cpp | 55 void DL_WARN_documented_change(int api_level, const char* doc_fragment, const char* fmt, ...) { in DL_WARN_documented_change() argument 59 va_start(ap, fmt); in DL_WARN_documented_change() 60 android::base::StringAppendV(&result, fmt, ap); in DL_WARN_documented_change()
|
/bionic/libc/bionic/ |
D | error.cpp | 64 void error(int status, int error, const char* fmt, ...) { in error() argument 69 va_start(ap, fmt); in error() 70 vfprintf(stderr, fmt, ap); in error() 76 void error_at_line(int status, int error, const char* file, unsigned int line, const char* fmt, ...… in error_at_line() argument 91 va_start(ap, fmt); in error_at_line() 92 vfprintf(stderr, fmt, ap); in error_at_line()
|
D | syslog.cpp | 48 void syslog(int priority, const char* fmt, ...) { in syslog() argument 50 va_start(args, fmt); in syslog() 51 vsyslog(priority, fmt, args); in syslog() 55 void vsyslog(int priority, const char* fmt, va_list args) { in vsyslog() argument 83 int n = vsnprintf(log_line, sizeof(log_line), fmt, args); in vsyslog()
|
D | time_l.cpp | 32 char* strptime_l(const char* buf, const char* fmt, struct tm* tm, locale_t) { in strptime_l() argument 33 return strptime(buf, fmt, tm); in strptime_l()
|
D | fdsan.cpp | 133 __printflike(1, 0) static void fdsan_error(const char* fmt, ...) { in fdsan_error() argument 147 va_start(va, fmt); in fdsan_error() 149 async_safe_fatal_va_list("fdsan", fmt, va); in fdsan_error() 151 async_safe_format_log_va_list(ANDROID_LOG_ERROR, "fdsan", fmt, va); in fdsan_error() 153 va_start(va, fmt); in fdsan_error() 155 async_safe_format_buffer_va_list(abort_message.buf, sizeof(abort_message.buf), fmt, va); in fdsan_error()
|
/bionic/libc/async_safe/include/async_safe/ |
D | log.h | 58 void async_safe_fatal_no_abort(const char* fmt, ...) __printflike(1, 2); 59 void async_safe_fatal_va_list(const char* prefix, const char* fmt, va_list args); 67 int async_safe_format_buffer(char* buf, size_t size, const char* fmt, ...) __printflike(3, 4); 72 int async_safe_format_log(int priority, const char* tag, const char* fmt, ...) __printflike(3, 4); 73 int async_safe_format_log_va_list(int priority, const char* tag, const char* fmt, va_list ap);
|
/bionic/libc/stdio/ |
D | stdio.cpp | 67 va_start(ap, fmt); \ 736 int asprintf(char** s, const char* fmt, ...) { in asprintf() argument 737 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf() 744 int dprintf(int fd, const char* fmt, ...) { in dprintf() argument 745 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf() 748 int fprintf(FILE* fp, const char* fmt, ...) { in fprintf() argument 750 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf() 837 int fscanf(FILE* fp, const char* fmt, ...) { in fscanf() argument 839 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf() 842 int fwprintf(FILE* fp, const wchar_t* fmt, ...) { in fwprintf() argument [all …]
|
D | vfscanf.cpp | 42 const unsigned char* fmt = reinterpret_cast<const unsigned char*>(fmt0); in __svfscanf() local 64 c = *fmt++; in __svfscanf() 78 c = *fmt++; in __svfscanf() 99 if (*fmt == 'h') { in __svfscanf() 100 fmt++; in __svfscanf() 107 if (*fmt == 'l') { in __svfscanf() 108 fmt++; in __svfscanf() 181 c = *fmt++; in __svfscanf() 184 c = *fmt++; in __svfscanf() 188 c = *fmt++; in __svfscanf() [all …]
|
D | vfwscanf.cpp | 80 int __vfwscanf(FILE* __restrict fp, const wchar_t* __restrict fmt, __va_list ap) { in __vfwscanf() argument 106 c = *fmt++; in __vfwscanf() 124 c = *fmt++; in __vfwscanf() 147 if (*fmt == 'h') { in __vfwscanf() 148 fmt++; in __vfwscanf() 155 if (*fmt == 'l') { in __vfwscanf() 156 fmt++; in __vfwscanf() 226 c = *fmt++; in __vfwscanf() 229 c = *fmt++; in __vfwscanf() 233 c = *fmt++; in __vfwscanf() [all …]
|
D | printf_common.h | 88 static int __sbprintf(FILE* fp, const CHAR_TYPE* fmt, va_list ap) { in __sbprintf() argument 106 int ret = FUNCTION_NAME(&fake, fmt, ap); in __sbprintf() 277 cp = fmt; \ 294 fmt = ++cp; \ 368 cp = fmt; \ in __find_arguments() 378 fmt = ++cp; \ in __find_arguments() 382 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in __find_arguments() local 394 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in __find_arguments() 396 fmt++; /* skip over '%' */ in __find_arguments() 401 ch = *fmt++; in __find_arguments() [all …]
|
D | vfwprintf.cpp | 154 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in FUNCTION_NAME() local 169 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 170 if (fmt != cp) { in FUNCTION_NAME() 171 ptrdiff_t m = fmt - cp; in FUNCTION_NAME() 177 fmt++; /* skip over '%' */ in FUNCTION_NAME() 187 ch = *fmt++; in FUNCTION_NAME() 223 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 231 ch = *fmt++; in FUNCTION_NAME() 266 ch = *fmt++; in FUNCTION_NAME() 285 if (*fmt == 'h') { in FUNCTION_NAME() [all …]
|
D | vfprintf.cpp | 151 CHAR_TYPE* fmt = const_cast<CHAR_TYPE*>(fmt0); in FUNCTION_NAME() local 166 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) continue; in FUNCTION_NAME() 167 if (fmt != cp) { in FUNCTION_NAME() 168 ptrdiff_t m = fmt - cp; in FUNCTION_NAME() 174 fmt++; /* skip over '%' */ in FUNCTION_NAME() 184 ch = *fmt++; in FUNCTION_NAME() 220 if ((ch = *fmt++) == '*') { in FUNCTION_NAME() 228 ch = *fmt++; in FUNCTION_NAME() 263 ch = *fmt++; in FUNCTION_NAME() 282 if (*fmt == 'h') { in FUNCTION_NAME() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | warn.c | 35 warn(const char *fmt, ...) in warn() argument 39 va_start(ap, fmt); in warn() 40 vwarn(fmt, ap); in warn()
|
D | warnx.c | 35 warnx(const char *fmt, ...) in warnx() argument 39 va_start(ap, fmt); in warnx() 40 vwarnx(fmt, ap); in warnx()
|
D | err.c | 35 err(int eval, const char *fmt, ...) in err() argument 39 va_start(ap, fmt); in err() 40 verr(eval, fmt, ap); in err()
|
D | errx.c | 35 errx(int eval, const char *fmt, ...) in errx() argument 39 va_start(ap, fmt); in errx() 40 verrx(eval, fmt, ap); in errx()
|
D | vwarnx.c | 37 vwarnx(const char *fmt, va_list ap) in vwarnx() argument 40 if (fmt != NULL) in vwarnx() 41 (void)vfprintf(stderr, fmt, ap); in vwarnx()
|
D | verrx.c | 37 verrx(int eval, const char *fmt, va_list ap) in verrx() argument 40 if (fmt != NULL) in verrx() 41 (void)vfprintf(stderr, fmt, ap); in verrx()
|
D | vwarn.c | 39 vwarn(const char *fmt, va_list ap) in vwarn() argument 45 if (fmt != NULL) { in vwarn() 46 (void)vfprintf(stderr, fmt, ap); in vwarn()
|
D | verr.c | 39 verr(int eval, const char *fmt, va_list ap) in verr() argument 45 if (fmt != NULL) { in verr() 46 (void)vfprintf(stderr, fmt, ap); in verr()
|
/bionic/libc/private/ |
D | MallocXmlElem.h | 45 void Contents(const char* fmt, ...) { in Contents() argument 47 va_start(args, fmt); in Contents() 48 vdprintf(fd_, fmt, args); in Contents()
|
D | bionic_fortify.h | 42 inline __noreturn __printflike(1, 2) void __fortify_fatal(const char* fmt, ...) { in __fortify_fatal() argument 44 va_start(args, fmt); in __fortify_fatal() 45 async_safe_fatal_va_list("FORTIFY", fmt, args); in __fortify_fatal()
|
/bionic/libc/malloc_debug/tests/ |
D | log_fake.cpp | 74 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { in __android_log_print() argument 80 va_start(ap, fmt); in __android_log_print() 81 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
|