Home
last modified time | relevance | path

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

12

/system/core/libsparse/
Dsparse_err.c23 void sparse_default_print(const char *fmt, ...) in sparse_default_print() argument
27 va_start(argp, fmt); in sparse_default_print()
28 vfprintf(stderr, fmt, argp); in sparse_default_print()
32 void (*sparse_print_error)(const char *fmt, ...) = sparse_default_print;
33 void (*sparse_print_verbose)(const char *fmt, ...) = sparse_default_print;
Dsparse_defs.h46 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); } whil… argument
Dsparse_read.c53 static void verbose_error(bool verbose, int err, const char *fmt, ...) in verbose_error() argument
57 if (fmt) { in verbose_error()
61 va_start(argp, fmt); in verbose_error()
62 size = vsnprintf(NULL, 0, fmt, argp); in verbose_error()
74 va_start(argp, fmt); in verbose_error()
75 vsnprintf(at, size, fmt, argp); in verbose_error()
95 if (fmt) { in verbose_error()
/system/core/fastboot/
Dutil.c45 char *mkmsg(const char *fmt, ...) in mkmsg() argument
51 va_start(ap, fmt); in mkmsg()
52 vsprintf(buf, fmt, ap); in mkmsg()
60 void die(const char *fmt, ...) in die() argument
63 va_start(ap, fmt); in die()
65 vfprintf(stderr, fmt, ap); in die()
Dfastboot.h47 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...);
67 char *mkmsg(const char *fmt, ...);
68 void die(const char *fmt, ...);
Dengine.c87 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...) in fb_getvar() argument
94 va_start(args, fmt); in fb_getvar()
95 vsnprintf(cmd + getvar_len, sizeof(cmd) - getvar_len, fmt, args); in fb_getvar()
136 static Action *queue_action(unsigned op, const char *fmt, ...) in queue_action() argument
145 va_start(ap, fmt); in queue_action()
146 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action()
/system/keymaster/
Dgoogle_keymaster_test_utils.h95 int debug(const char* fmt, ...) const { in debug() argument
97 va_start(args, fmt); in debug()
98 int result = vprintf(fmt, args); in debug()
104 int info(const char* fmt, ...) const { in info() argument
106 va_start(args, fmt); in info()
107 int result = vprintf(fmt, args); in info()
113 int error(const char* fmt, ...) const { in error() argument
115 va_start(args, fmt); in error()
116 int result = vfprintf(stderr, fmt, args); in error()
122 int severe(const char* fmt, ...) const { in severe() argument
[all …]
/system/core/fastbootd/
Ddebug.h33 #define DLOG(fmt, ...) KLOG_INFO("fastbootd", fmt, ##__VA_ARGS__) argument
35 #define D(level, fmt, ...) \ argument
38 DLOG("%s:%d " fmt "\n", __BASE_FILE__, __LINE__, ##__VA_ARGS__); \
/system/keymaster/include/keymaster/
Dlogger.h26 virtual int debug(const char* fmt, ...) const = 0;
27 virtual int info(const char* fmt, ...) const = 0;
28 virtual int error(const char* fmt, ...) const = 0;
29 virtual int severe(const char* fmt, ...) const = 0;
/system/core/libcutils/
Dklog.c56 void klog_vwrite(int level, const char *fmt, va_list ap) in klog_vwrite() argument
64 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); in klog_vwrite()
70 void klog_write(int level, const char *fmt, ...) in klog_write() argument
73 va_start(ap, fmt); in klog_write()
74 klog_vwrite(level, fmt, ap); in klog_write()
/system/core/liblog/
Dlogd_write_kern.c233 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
237 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
242 int __android_log_print(int prio, const char *tag, const char *fmt, ...) in __android_log_print() argument
247 va_start(ap, fmt); in __android_log_print()
248 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
254 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) in __android_log_buf_print() argument
259 va_start(ap, fmt); in __android_log_buf_print()
260 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
267 const char *fmt, ...) in __android_log_assert() argument
271 if (fmt) { in __android_log_assert()
[all …]
Dlogd_write.c388 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
392 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
397 int __android_log_print(int prio, const char *tag, const char *fmt, ...) in __android_log_print() argument
402 va_start(ap, fmt); in __android_log_print()
403 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
409 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) in __android_log_buf_print() argument
414 va_start(ap, fmt); in __android_log_buf_print()
415 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
422 const char *fmt, ...) in __android_log_assert() argument
426 if (fmt) { in __android_log_assert()
[all …]
Dlog_time.cpp49 char fmt[strlen(format) + 1]; in strptime() local
50 strcpy(fmt, format); in strptime()
54 for (char *f = cp = fmt; ; ++cp) { in strptime()
/system/core/logd/
DLogWhiteBlackList.cpp181 const char *fmt = nice_format + 1; in format() local
187 fmt = nice_format; in format()
196 string.appendFormat(fmt, a); in format()
197 fmt = nice_format; in format()
203 fmt = naughty_format + (*fmt != ' '); in format()
208 string.appendFormat(fmt, a); in format()
209 fmt = naughty_format; in format()
DCommandListener.cpp196 char fmt[32]; in package_string() local
197 for(size_t l = strlen(a), y = 0, x = 6; y != x; y = x, x = strlen(fmt) - 2) { in package_string()
198 snprintf(fmt, sizeof(fmt), "%zu\n%%s\n\f", l + x); in package_string()
203 asprintf(strp, fmt, a); in package_string()
DLogAudit.cpp57 int LogAudit::logPrint(const char *fmt, ...) { in logPrint() argument
58 if (fmt == NULL) { in logPrint()
65 va_start(args, fmt); in logPrint()
66 int rc = vasprintf(&str, fmt, args); in logPrint()
/system/core/include/android/
Dlog.h99 int __android_log_print(int prio, const char *tag, const char *fmt, ...)
118 const char *fmt, va_list ap);
125 const char *fmt, ...)
/system/extras/ext4_utils/
Dext4_utils.h52 #define warn(fmt, args...) do { fprintf(stderr, "warning: %s: " fmt "\n", __func__, ## args); } whi… argument
53 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); if (!f… argument
55 #define critical_error(fmt, args...) do { fprintf(stderr, "critical error: %s: " fmt "\n", __func__… argument
/system/core/include/log/
Dlog.h447 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument
448 android_vprintLog(priority, NULL, tag, fmt, args)
504 #define android_printLog(prio, tag, fmt...) \ argument
505 __android_log_print(prio, tag, fmt)
507 #define android_vprintLog(prio, cond, tag, fmt...) \ argument
508 __android_log_vprint(prio, tag, fmt)
525 #define android_printAssert(cond, tag, fmt...) \ argument
527 __android_second(0, ## fmt, NULL) __android_rest(fmt))
564 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...)
/system/core/include/cutils/
Dklog.h29 void klog_write(int level, const char *fmt, ...)
31 void klog_vwrite(int level, const char *fmt, va_list ap);
/system/core/libutils/
DString8.cpp210 String8 String8::format(const char* fmt, ...) in format() argument
213 va_start(args, fmt); in format()
215 String8 result(formatV(fmt, args)); in format()
221 String8 String8::formatV(const char* fmt, va_list args) in formatV() argument
224 result.appendFormatV(fmt, args); in formatV()
313 status_t String8::appendFormat(const char* fmt, ...) in appendFormat() argument
316 va_start(args, fmt); in appendFormat()
318 status_t result = appendFormatV(fmt, args); in appendFormat()
324 status_t String8::appendFormatV(const char* fmt, va_list args) in appendFormatV() argument
334 n = vsnprintf(NULL, 0, fmt, tmp_args); in appendFormatV()
[all …]
/system/core/init/
Dparser.c51 void parse_error(struct parse_state *state, const char *fmt, ...) in parse_error() argument
61 va_start(ap, fmt); in parse_error()
62 vsnprintf(buf + off, 128 - off, fmt, ap); in parse_error()
Dlog.h26 extern int log_callback(int type, const char *fmt, ...);
/system/core/debuggerd/
Dutility.cpp59 void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { in _LOG() argument
69 va_start(ap, fmt); in _LOG()
70 vsnprintf(buf, sizeof(buf), fmt, ap); in _LOG()
/system/core/libpixelflinger/codeflinger/
Dmips_disassem.c66 static void db_printf(const char* fmt, ...);
453 fmt_name[i.FRType.fmt], in db_disasm_insn()
553 static void db_printf(const char* fmt, ...) in db_printf() argument
557 va_start(argp, fmt); in db_printf()
559 cnt = vsnprintf(sprintf_buffer, sprintf_buf_len, fmt, argp); in db_printf()
563 vprintf(fmt, argp); in db_printf()

12