Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 36) sorted by relevance

12

/bionic/linker/
Dlinker_globals.h39 #define DL_ERR(fmt, x...) \ argument
41 __libc_format_buffer(linker_get_error_buffer(), linker_get_error_buffer_size(), fmt, ##x); \
45 #define DL_WARN(fmt, x...) \ argument
47 __libc_format_log(ANDROID_LOG_WARN, "linker", fmt, ##x); \
49 __libc_format_fd(2, fmt, ##x); \
53 #define DL_ERR_AND_LOG(fmt, x...) \ argument
55 DL_ERR(fmt, x); \
56 PRINT(fmt, x); \
/bionic/libc/bionic/
Dsyslog.cpp44 void syslog(int priority, const char* fmt, ...) { in syslog() argument
46 va_start(args, fmt); in syslog()
47 vsyslog(priority, fmt, args); in syslog()
51 void vsyslog(int priority, const char* fmt, va_list args) { in vsyslog() argument
80 const char* log_fmt = fmt; in vsyslog()
81 if (strstr(fmt, "%m") != NULL) { in vsyslog()
86 const char* src = fmt; in vsyslog()
117 if (log_fmt != fmt) { in vsyslog()
Derror.cpp64 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()
Dmalloc_info.cpp45 void contents(const char* fmt, ...) { in contents() argument
47 va_start(args, fmt); in contents()
48 vfprintf(fp, fmt, args); in contents()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dwarn.c35 warn(const char *fmt, ...) in warn() argument
39 va_start(ap, fmt); in warn()
40 vwarn(fmt, ap); in warn()
Dwarnx.c35 warnx(const char *fmt, ...) in warnx() argument
39 va_start(ap, fmt); in warnx()
40 vwarnx(fmt, ap); in warnx()
Derr.c35 err(int eval, const char *fmt, ...) in err() argument
39 va_start(ap, fmt); in err()
40 verr(eval, fmt, ap); in err()
Derrx.c35 errx(int eval, const char *fmt, ...) in errx() argument
39 va_start(ap, fmt); in errx()
40 verrx(eval, fmt, ap); in errx()
Dvwarnx.c38 vwarnx(const char *fmt, va_list ap) in vwarnx() argument
41 if (fmt != NULL) in vwarnx()
42 (void)vfprintf(stderr, fmt, ap); in vwarnx()
Dverrx.c39 verrx(int eval, const char *fmt, va_list ap) in verrx() argument
42 if (fmt != NULL) in verrx()
43 (void)vfprintf(stderr, fmt, ap); in verrx()
Dvwarn.c40 vwarn(const char *fmt, va_list ap) in vwarn() argument
46 if (fmt != NULL) { in vwarn()
47 (void)vfprintf(stderr, fmt, ap); in vwarn()
Dverr.c41 verr(int eval, const char *fmt, va_list ap) in verr() argument
47 if (fmt != NULL) { in verr()
48 (void)vfprintf(stderr, fmt, ap); in verr()
/bionic/libc/stdio/
Dstdio.cpp60 va_start(ap, fmt); \
648 int asprintf(char** s, const char* fmt, ...) { in asprintf() argument
649 PRINTF_IMPL(vasprintf(s, fmt, ap)); in asprintf()
656 int dprintf(int fd, const char* fmt, ...) { in dprintf() argument
657 PRINTF_IMPL(vdprintf(fd, fmt, ap)); in dprintf()
660 int fprintf(FILE* fp, const char* fmt, ...) { in fprintf() argument
661 PRINTF_IMPL(vfprintf(fp, fmt, ap)); in fprintf()
672 int fscanf(FILE* fp, const char* fmt, ...) { in fscanf() argument
673 PRINTF_IMPL(vfscanf(fp, fmt, ap)); in fscanf()
676 int fwprintf(FILE* fp, const wchar_t* fmt, ...) { in fwprintf() argument
[all …]
Dvfscanf.c101 u_char *fmt = (u_char *)fmt0; in __svfscanf() local
129 c = *fmt++; in __svfscanf()
146 again: c = *fmt++; in __svfscanf()
168 if (*fmt == 'h') { in __svfscanf()
169 fmt++; in __svfscanf()
176 if (*fmt == 'l') { in __svfscanf()
177 fmt++; in __svfscanf()
255 fmt = __sccl(ccltab, fmt); in __svfscanf()
800 __sccl(char *tab, u_char *fmt) in __sccl() argument
805 c = *fmt++; /* first char hat => negated scanset */ in __sccl()
[all …]
Dvfwscanf.c105 __vfwscanf(FILE * __restrict fp, const wchar_t * __restrict fmt, __va_list ap) in __vfwscanf() argument
139 c = *fmt++; in __vfwscanf()
159 again: c = *fmt++; in __vfwscanf()
182 if (*fmt == 'h') { in __vfwscanf()
183 fmt++; in __vfwscanf()
190 if (*fmt == 'l') { in __vfwscanf()
191 fmt++; in __vfwscanf()
269 ccls = fmt; in __vfwscanf()
270 if (*fmt == '^') { in __vfwscanf()
272 fmt++; in __vfwscanf()
[all …]
/bionic/libc/private/
Dlibc_logging.h76 int __libc_format_buffer(char* _Nonnull buf, size_t size, const char* _Nonnull fmt, ...) __printfli…
87 int __libc_format_log(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, ...) __printflik…
89 int __libc_format_log_va_list(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, va_list …
91 int __libc_format_log_va_list(int pri, const char* _Nonnull tag, const char* _Nonnull fmt, va_list …
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvsscanf.c47 vsscanf(const char *str, const char *fmt, __va_list ap) in vsscanf() argument
58 return (__svfscanf(&f, fmt, ap)); in vsscanf()
Dvfprintf.c119 __sbprintf(FILE *fp, const char *fmt, va_list ap) in __sbprintf() argument
139 ret = __vfprintf(&fake, fmt, ap); in __sbprintf()
271 char *fmt; /* format string */ in __vfprintf() local
427 cp = fmt; \ in __vfprintf()
445 fmt = ++cp; \ in __vfprintf()
471 fmt = (char *)fmt0; in __vfprintf()
488 cp = fmt; in __vfprintf()
489 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { in __vfprintf()
490 fmt += n; in __vfprintf()
492 fmt--; in __vfprintf()
[all …]
Dvfwprintf.c97 __sbprintf(FILE *fp, const wchar_t *fmt, va_list ap) in __sbprintf() argument
117 ret = __vfwprintf(&fake, fmt, ap); in __sbprintf()
281 wchar_t *fmt; /* format string */ in __vfwprintf() local
419 cp = fmt; \ in __vfwprintf()
433 fmt = ++cp; \ in __vfwprintf()
459 fmt = (wchar_t *)fmt0; in __vfwprintf()
470 for (cp = fmt; (ch = *fmt) != '\0' && ch != '%'; fmt++) in __vfwprintf()
472 if (fmt != cp) { in __vfwprintf()
473 ptrdiff_t m = fmt - cp; in __vfwprintf()
481 fmt++; /* skip over '%' */ in __vfwprintf()
[all …]
Dvdprintf.c51 vdprintf(int fd, const char * __restrict fmt, va_list ap) in vdprintf() argument
69 if ((ret = __vfprintf(&f, fmt, ap)) < 0) in vdprintf()
Dvasprintf.c26 vasprintf(char **str, const char *fmt, __va_list ap) in vasprintf() argument
40 ret = __vfprintf(&f, fmt, ap); in vasprintf()
Dvswscanf.c52 vswscanf(const wchar_t * __restrict str, const wchar_t * __restrict fmt, in vswscanf() argument
84 r = __vfwscanf(&f, fmt, ap); in vswscanf()
/bionic/libc/malloc_debug/tests/
Dlog_fake.cpp70 extern "C" int __android_log_print(int prio, const char* tag, const char* fmt, ...) { in __android_log_print() argument
76 va_start(ap, fmt); in __android_log_print()
77 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
/bionic/tests/
Dfortify_compilation_test.cpp142 void test_vsprintf(const char* fmt, ...) { in test_vsprintf() argument
145 va_start(va, fmt); in test_vsprintf()
154 void test_vsnprintf(const char* fmt, ...) { in test_vsnprintf() argument
157 va_start(va, fmt); in test_vsnprintf()
/bionic/libc/tzcode/
Dstrptime.c102 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument
107 return (char*)(_strptime((const unsigned char*)buf, fmt, tm, &cr)); in strptime()
111 _strptime(const unsigned char *buf, const char *fmt, struct tm *tm, struct century_relyear *cr) in _strptime() argument
119 while ((c = *fmt) != '\0') { in _strptime()
128 fmt++; in _strptime()
132 if ((c = *fmt++) != '%') in _strptime()
136 again: switch (c = *fmt++) { in _strptime()

12