Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 44) sorted by relevance

12

/bionic/libc/async_safe/
Dasync_safe_log.cpp149 static unsigned parse_decimal(const char* format, int* ppos) { in parse_decimal() argument
150 const char* p = format + *ppos; in parse_decimal()
164 *ppos = p - format; in parse_decimal()
244 static void out_vformat(Out& o, const char* format, va_list args) { in out_vformat() argument
264 c = format[mm]; in out_vformat()
270 o.Send(format + nn, mm - nn); in out_vformat()
282 c = format[nn++]; in out_vformat()
303 width = static_cast<int>(parse_decimal(format, &nn)); in out_vformat()
304 c = format[nn++]; in out_vformat()
309 prec = static_cast<int>(parse_decimal(format, &nn)); in out_vformat()
[all …]
/bionic/libc/malloc_debug/
Ddebug_log.h36 #define debug_log(format, ...) \ argument
37 async_safe_format_log(ANDROID_LOG_DEBUG, "malloc_debug", (format), ##__VA_ARGS__)
38 #define error_log(format, ...) \ argument
39 async_safe_format_log(ANDROID_LOG_ERROR, "malloc_debug", (format), ##__VA_ARGS__)
41 #define info_log(format, ...) \ argument
42 async_safe_format_log(ANDROID_LOG_INFO, "malloc_debug", (format), ##__VA_ARGS__)
DAndroid.bp36 // -Wno-error=format-zero-length needed for gcc to compile.
40 "-Wno-error=format-zero-length",
94 // -Wno-error=format-zero-length needed for gcc to compile.
99 "-Wno-error=format-zero-length",
150 "-Wno-error=format-zero-length",
/bionic/libc/include/bits/fortify/
Dstdio.h42 int vsnprintf(char* const __pass_object_size dest, size_t size, const char* format, va_list ap) in vsnprintf() argument
44 return __builtin___vsnprintf_chk(dest, size, 0, __bos(dest), format, ap); in vsnprintf()
48 int vsprintf(char* const __pass_object_size dest, const char* format, va_list ap) __overloadable { in vsprintf() argument
49 return __builtin___vsprintf_chk(dest, 0, __bos(dest), format, ap); in vsprintf()
54 int sprintf(char* dest, const char* format)
56 __enable_if(__bos_unevaluated_lt(__bos(dest), __builtin_strlen(format)),
62 int sprintf(char* const __pass_object_size dest, const char* format, ...) __overloadable { in sprintf() argument
64 va_start(va, format); in sprintf()
65 int result = __builtin___vsprintf_chk(dest, 0, __bos(dest), format, va); in sprintf()
72 int snprintf(char* const __pass_object_size dest, size_t size, const char* format, ...) in snprintf() argument
[all …]
/bionic/libc/bionic/
Dmalloc_common.h90 #define error_log(format, ...) \ argument
91 async_safe_format_log(ANDROID_LOG_ERROR, "libc", (format), ##__VA_ARGS__ )
92 #define info_log(format, ...) \ argument
93 async_safe_format_log(ANDROID_LOG_INFO, "libc", (format), ##__VA_ARGS__ )
94 #define warning_log(format, ...) \ argument
95 async_safe_format_log(ANDROID_LOG_WARN, "libc", (format), ##__VA_ARGS__ )
Dfortify.cpp413 size_t dst_len_from_compiler, const char* format, va_list va) { in __vsnprintf_chk() argument
415 return vsnprintf(dst, supplied_size, format, va); in __vsnprintf_chk()
420 size_t dst_len_from_compiler, const char* format, ...) { in __snprintf_chk() argument
422 va_start(va, format); in __snprintf_chk()
423 int result = __vsnprintf_chk(dst, supplied_size, flags, dst_len_from_compiler, format, va); in __snprintf_chk()
430 size_t dst_len_from_compiler, const char* format, va_list va) { in __vsprintf_chk() argument
434 format, va); in __vsprintf_chk()
443 const char* format, ...) { in __sprintf_chk() argument
445 va_start(va, format); in __sprintf_chk()
446 int result = __vsprintf_chk(dst, flags, dst_len_from_compiler, format, va); in __sprintf_chk()
Dtime64.c171 # define TRACE(format) (fprintf(stderr, format)) argument
172 # define TRACE1(format, var1) (fprintf(stderr, format, var1)) argument
173 # define TRACE2(format, var1, var2) (fprintf(stderr, format, var1, var2)) argument
174 # define TRACE3(format, var1, var2, var3) (fprintf(stderr, format, var1, var2, var3)) argument
176 # define TRACE(format) ((void)0) argument
177 # define TRACE1(format, var1) ((void)0) argument
178 # define TRACE2(format, var1, var2) ((void)0) argument
179 # define TRACE3(format, var1, var2, var3) ((void)0) argument
/bionic/libc/tzcode/
Dstrftime.c138 strftime_l(char *s, size_t maxsize, char const *format, struct tm const *t, in strftime_l() argument
142 return strftime(s, maxsize, format, t); in strftime_l()
149 strftime(char *s, size_t maxsize, const char *format, const struct tm *t) in strftime() argument
156 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn); in strftime()
160 if (format == NULL) in strftime()
163 format); in strftime()
193 _fmt(const char *format, const struct tm *t, char *pt, in _fmt() argument
196 for ( ; *format; ++format) { in _fmt()
197 if (*format == '%') { in _fmt()
200 switch (*++format) { in _fmt()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/time/
Dwcsftime.c120 const wchar_t *__restrict format, const struct tm *__restrict t) in wcsftime() argument
127 p = _fmt(((format == NULL) ? L"%c" : format), t, s, s + maxsize, &warn); in wcsftime()
138 _fmt(const wchar_t *format, const struct tm *t, wchar_t *pt, in _fmt() argument
141 for ( ; *format; ++format) { in _fmt()
142 if (*format != L'%') { in _fmt()
145 *pt++ = *format; in _fmt()
149 switch (*++format) { in _fmt()
151 --format; in _fmt()
392 if (*format == 'V') in _fmt()
394 else if (*format == 'g') { in _fmt()
[all …]
/bionic/libc/async_safe/include/async_safe/
Dlog.h68 int async_safe_format_buffer_va_list(char* buffer, size_t buffer_size, const char* format, va_list …
70 int async_safe_format_fd(int fd, const char* format , ...) __printflike(2, 3);
71 int async_safe_format_fd_va_list(int fd, const char* format, va_list args);
/bionic/tools/versioner/
Drun_tests.py31 print("{} {}: unexpected success:".format(prefix_fail, test_name))
39 print("{} {}: expected output mismatch".format(
48 print("{} {}: unexpected failure:".format(prefix_fail, test_name))
53 print("{} {}".format(prefix_pass, test_name))
/bionic/libc/tools/
Dgenseccomp.py149 return [BPF_JGE.format(ranges[0].end, "{fail}", "{allow}") +
155 jump = [BPF_JGE.format(ranges[half].begin, len(first), 0) + ","]
166 result.append(BPF_JEQ.format(syscall[1], "{allow}", 0) +
184 bpf[i] = statement.format(fail=str(len(bpf) - i),
193 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',')
210 """).format(self_path=os.path.basename(__file__), architecture=architecture,
218 """).format(architecture=architecture,suffix=name_modifier)
257 "{}{}_policy.cpp".format(arch, filename_modifier))
Dsymbols.py66 '{}_intermediates'.format(os.path.splitext(f)[0]))
/bionic/libc/malloc_debug/tests/
Dlog_fake.cpp47 extern "C" int async_safe_format_log(int priority, const char* tag, const char* format, ...) { in async_safe_format_log() argument
51 va_start(ap, format); in async_safe_format_log()
52 android::base::StringAppendV(&g_fake_log_print, format, ap); in async_safe_format_log()
/bionic/linker/
Dlinker_logger.cpp121 void LinkerLogger::Log(const char* format, ...) { in Log() argument
123 va_start(ap, format); in Log()
124 async_safe_format_log_va_list(ANDROID_LOG_DEBUG, "linker", format, ap); in Log()
Dld.config.format.md1 # Linker config file format
3 This document describes format of /system/etc/ld.config.txt file. This file can be used to customize
16 The format is `dir.<section_name>=<directory>`
Dlinker_logger.h52 void Log(const char* format, ...) __printflike(2, 3);
/bionic/libc/kernel/uapi/drm/
Dvmwgfx_drm.h88 __u32 format; member
164 __s32 format; member
274 __u32 format; member
Dqxl_drm.h86 __u32 format; member
/bionic/libc/kernel/uapi/linux/
Domapfb.h94 __u32 format; member
102 __u32 format; member
Dvirtio_gpu.h95 __le32 format; member
160 __le32 format; member
Dv4l2-subdev.h32 struct v4l2_mbus_framefmt format; member
Diommu.h140 __u32 format; member
/bionic/libc/kernel/uapi/linux/dvb/
Dvideo.h65 __u32 format; member
/bionic/libc/kernel/uapi/sound/
Dhdspm.h79 enum hdspm_ltc_format format; member

12