Home
last modified time | relevance | path

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

1234

/system/keymaster/
Dlogger.cpp24 int Logger::Log(LogLevel level, const char* fmt, va_list args) { in Log() argument
27 return instance_->log_msg(level, fmt, args); in Log()
31 int Logger::Log(LogLevel level, const char* fmt, ...) { in Log() argument
33 va_start(args, fmt); in Log()
34 int result = Log(level, fmt, args); in Log()
40 int Logger::Debug(const char* fmt, ...) { in Debug() argument
42 va_start(args, fmt); in Debug()
43 int result = Log(DEBUG_LVL, fmt, args); in Debug()
49 int Logger::Info(const char* fmt, ...) { in Info() argument
51 va_start(args, fmt); in Info()
[all …]
/system/keymaster/include/keymaster/
Dlogger.h37 virtual int log_msg(LogLevel level, const char* fmt, va_list args) const = 0;
39 static int Log(LogLevel level, const char* fmt, va_list args);
40 static int Log(LogLevel level, const char* fmt, ...);
41 static int Debug(const char* fmt, ...);
42 static int Info(const char* fmt, ...);
43 static int Warning(const char* fmt, ...);
44 static int Error(const char* fmt, ...);
45 static int Severe(const char* fmt, ...);
68 #define LOG_D(fmt, ...) \ argument
71 Logger::Debug(FILE_LINE fmt, __VA_ARGS__); \
[all …]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h74 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) in vscnprintf() argument
79 i = vsnprintf(buf, size, fmt, args); in vscnprintf()
84 static inline int scnprintf(char * buf, size_t size, const char * fmt, ...) in scnprintf() argument
90 va_start(args, fmt); in scnprintf()
91 i = vsnprintf(buf, size, fmt, args); in scnprintf()
104 const char *fmt, ...) __attribute__((format(printf, 2, 3)));
107 #define pr_fmt(fmt) fmt argument
110 #define pr_err(fmt, ...) \ argument
111 eprintf(0, pr_fmt(fmt), ##__VA_ARGS__)
112 #define pr_warning(fmt, ...) \ argument
[all …]
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h61 #define pr_fmt(fmt) fmt argument
64 #define pr_err(fmt,...) eprintf(0, pr_fmt(fmt), ##__VA_ARGS__) argument
65 #define pr_warning(fmt,...) eprintf(0, pr_fmt(fmt), ##__VA_ARGS__) argument
66 #define pr_info(fmt,...) eprintf(0, pr_fmt(fmt), ##__VA_ARGS__) argument
68 #define pr_debug(fmt,...) eprintf(1, pr_fmt(fmt), ##__VA_ARGS__) argument
69 #define pr_debugN(n,fmt,...) eprintf(n, pr_fmt(fmt), ##__VA_ARGS__) argument
70 #define pr_debug2(fmt,...) pr_debugN(2, pr_fmt(fmt), ##__VA_ARGS__) argument
71 #define pr_debug3(fmt,...) pr_debugN(3, pr_fmt(fmt), ##__VA_ARGS__) argument
73 #define pr_debug4(fmt,...) pr_debugN(4, pr_fmt(fmt), ##__VA_ARGS__) argument
/system/extras/perfprofd/tests/
Dperfprofdmockutils.cc65 void perfprofd_mocklog(const char *tag, const char *fmt, va_list ap) in perfprofd_mocklog() argument
69 vsnprintf(buffer+strlen(tag), LMAX, fmt, ap); in perfprofd_mocklog()
74 void perfprofd_log_error(const char *fmt, ...) in perfprofd_log_error() argument
77 va_start(ap, fmt); in perfprofd_log_error()
78 vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); in perfprofd_log_error()
79 perfprofd_mocklog("E: ", fmt, ap); in perfprofd_log_error()
83 void perfprofd_log_warning(const char *fmt, ...) in perfprofd_log_warning() argument
86 va_start(ap, fmt); in perfprofd_log_warning()
87 vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); in perfprofd_log_warning()
88 perfprofd_mocklog("W: ", fmt, ap); in perfprofd_log_warning()
[all …]
/system/extras/perfprofd/
Dperfprofdutils.cc27 void perfprofd_log_error(const char *fmt, ...) in perfprofd_log_error() argument
30 va_start(ap, fmt); in perfprofd_log_error()
31 LOG_PRI_VA(ANDROID_LOG_ERROR, LOG_TAG, fmt, ap); in perfprofd_log_error()
35 void perfprofd_log_warning(const char *fmt, ...) in perfprofd_log_warning() argument
38 va_start(ap, fmt); in perfprofd_log_warning()
39 LOG_PRI_VA(ANDROID_LOG_WARN, LOG_TAG, fmt, ap); in perfprofd_log_warning()
43 void perfprofd_log_info(const char *fmt, ...) in perfprofd_log_info() argument
46 va_start(ap, fmt); in perfprofd_log_info()
47 LOG_PRI_VA(ANDROID_LOG_INFO, LOG_TAG, fmt, ap); in perfprofd_log_info()
Dperfprofdutils.h27 extern void perfprofd_log_error(const char *fmt, ...);
28 extern void perfprofd_log_warning(const char *fmt, ...);
29 extern void perfprofd_log_info(const char *fmt, ...);
/system/core/init/
Dlog.cpp25 static void init_klog_vwrite(int level, const char* fmt, va_list ap) { in init_klog_vwrite() argument
32 vsnprintf(msg, sizeof(msg), fmt, ap); in init_klog_vwrite()
43 void init_klog_write(int level, const char* fmt, ...) { in init_klog_write() argument
45 va_start(ap, fmt); in init_klog_write()
46 init_klog_vwrite(level, fmt, ap); in init_klog_write()
50 int selinux_klog_callback(int type, const char *fmt, ...) { in selinux_klog_callback() argument
58 va_start(ap, fmt); in selinux_klog_callback()
59 init_klog_vwrite(level, fmt, ap); in selinux_klog_callback()
Dlog.h26 void init_klog_write(int level, const char* fmt, ...) __printflike(2, 3);
27 int selinux_klog_callback(int level, const char* fmt, ...) __printflike(2, 3);
/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.h51 int fb_getvar(struct usb_handle *usb, char *response, const char *fmt, ...);
71 char *mkmsg(const char *fmt, ...);
72 __attribute__((__noreturn__)) void die(const char *fmt, ...);
/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;
/system/core/liblog/
Dlogd_write_kern.c184 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
188 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
193 int __android_log_print(int prio, const char *tag, const char *fmt, ...) in __android_log_print() argument
198 va_start(ap, fmt); in __android_log_print()
199 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
205 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) in __android_log_buf_print() argument
210 va_start(ap, fmt); in __android_log_buf_print()
211 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
218 const char *fmt, ...) in __android_log_assert() argument
222 if (fmt) { in __android_log_assert()
[all …]
Dlogd_write.c404 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
408 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
413 int __android_log_print(int prio, const char *tag, const char *fmt, ...) in __android_log_print() argument
418 va_start(ap, fmt); in __android_log_print()
419 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
425 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) in __android_log_buf_print() argument
430 va_start(ap, fmt); in __android_log_buf_print()
431 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
438 const char *fmt, ...) in __android_log_assert() argument
442 if (fmt) { in __android_log_assert()
[all …]
/system/core/logd/
DLogWhiteBlackList.cpp183 const char *fmt = nice_format + 1; in format() local
189 fmt = nice_format; in format()
198 string.appendFormat(fmt, a); in format()
199 fmt = nice_format; in format()
205 fmt = naughty_format + (*fmt != ' '); in format()
210 string.appendFormat(fmt, a); in format()
211 fmt = naughty_format; in format()
/system/core/adb/
Dqemu_tracing.cpp59 void adb_qemu_trace(const char* fmt, ...) in adb_qemu_trace() argument
62 va_start(args, fmt); in adb_qemu_trace()
66 vsnprintf(msg, sizeof(msg), fmt, args); in adb_qemu_trace()
/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/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/core/include/log/
Dlog.h468 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument
469 android_vprintLog(priority, NULL, tag, fmt, args)
533 #define android_printLog(prio, tag, fmt...) \ argument
534 __android_log_print(prio, tag, fmt)
536 #define android_vprintLog(prio, cond, tag, fmt...) \ argument
537 __android_log_vprint(prio, tag, fmt)
554 #define android_printAssert(cond, tag, fmt...) \ argument
556 __android_second(0, ## fmt, NULL) __android_rest(fmt))
619 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...)
/system/core/debuggerd/test/
Dlog_fake.cpp54 extern "C" int __android_log_print(int, const char* tag, const char* fmt, ...) { in __android_log_print() argument
59 va_start(ap, fmt); in __android_log_print()
60 android::base::StringAppendV(&g_fake_log_print, fmt, ap); in __android_log_print()
/system/core/debuggerd/
Dutility.cpp47 void _LOG(log_t* log, enum logtype ltype, const char* fmt, ...) { in _LOG() argument
57 va_start(ap, fmt); in _LOG()
58 vsnprintf(buf, sizeof(buf), fmt, ap); in _LOG()
125 void dump_memory(log_t* log, Backtrace* backtrace, uintptr_t addr, const char* fmt, ...) { argument
128 va_start(ap, fmt);
129 android::base::StringAppendV(&log_msg, fmt, ap);
/system/core/libcutils/
Dklog.c64 void klog_write(int level, const char* fmt, ...) { in klog_write() argument
67 va_start(ap, fmt); in klog_write()
68 vsnprintf(buf, sizeof(buf), fmt, ap); in klog_write()
/system/core/base/
Dstringprintf.cpp68 std::string StringPrintf(const char* fmt, ...) { in StringPrintf() argument
70 va_start(ap, fmt); in StringPrintf()
72 StringAppendV(&result, fmt, ap); in StringPrintf()
/system/extras/simpleperf/
Dutils.cpp27 void PrintIndented(size_t indent, const char* fmt, ...) { in PrintIndented() argument
29 va_start(ap, fmt); in PrintIndented()
31 vprintf(fmt, ap); in PrintIndented()
/system/core/base/include/base/
Dstringprintf.h27 std::string StringPrintf(const char* fmt, ...)
31 void StringAppendF(std::string* dst, const char* fmt, ...)

1234