/system/core/libsparse/ |
D | sparse_err.c | 23 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;
|
D | sparse_defs.h | 46 #define error(fmt, args...) do { fprintf(stderr, "error: %s: " fmt "\n", __func__, ## args); } whil… argument
|
D | sparse_read.c | 53 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/ |
D | util.c | 45 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()
|
D | fastboot.h | 47 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...); 67 char *mkmsg(const char *fmt, ...); 68 void die(const char *fmt, ...);
|
D | engine.c | 87 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/ |
D | google_keymaster_test_utils.h | 95 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/ |
D | debug.h | 33 #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/ |
D | logger.h | 26 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/ |
D | klog.c | 56 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/ |
D | logd_write_kern.c | 233 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 …]
|
D | logd_write.c | 388 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 …]
|
D | log_time.cpp | 49 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/ |
D | LogWhiteBlackList.cpp | 181 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()
|
D | CommandListener.cpp | 196 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()
|
D | LogAudit.cpp | 57 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/ |
D | log.h | 99 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/ |
D | ext4_utils.h | 52 #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/ |
D | log.h | 447 #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/ |
D | klog.h | 29 void klog_write(int level, const char *fmt, ...) 31 void klog_vwrite(int level, const char *fmt, va_list ap);
|
/system/core/libutils/ |
D | String8.cpp | 210 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/ |
D | parser.c | 51 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()
|
D | log.h | 26 extern int log_callback(int type, const char *fmt, ...);
|
/system/core/debuggerd/ |
D | utility.cpp | 59 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/ |
D | mips_disassem.c | 66 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()
|