Home
last modified time | relevance | path

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

12

/system/core/debuggerd/
Dutility.h57 extern void _LOG(int tfd, bool in_tombstone_only, const char *fmt, ...);
59 #define LOG(fmt...) _LOG(-1, 0, fmt) argument
63 #define XLOG(fmt...) _LOG(-1, 0, fmt)
65 #define XLOG(fmt...) do {} while(0) argument
70 #define XLOG2(fmt...) _LOG(-1, 0, fmt)
72 #define XLOG2(fmt...) do {} while(0) argument
Ddebuggerd.c46 void _LOG(int tfd, bool in_tombstone_only, const char *fmt, ...) in _LOG() argument
51 va_start(ap, fmt); in _LOG()
55 vsnprintf(buf, sizeof(buf), fmt, ap); in _LOG()
61 __android_log_vprint(ANDROID_LOG_INFO, "DEBUG", fmt, ap); in _LOG()
/system/media/wilhelm/src/desktop/
DSDL.c47 SDL_AudioSpec fmt; in SDL_open() local
48 fmt.freq = 44100; in SDL_open()
49 fmt.format = AUDIO_S16; in SDL_open()
50 fmt.channels = STEREO_CHANNELS; in SDL_open()
52 fmt.samples = SndFile_BUFSIZE; in SDL_open()
54 fmt.samples = SndFile_BUFSIZE / sizeof(short); in SDL_open()
56 fmt.callback = SDL_callback; in SDL_open()
57 fmt.userdata = (void *) thisEngine; in SDL_open()
59 if (SDL_OpenAudio(&fmt, NULL) < 0) { in SDL_open()
/system/core/sh/
Derror.c211 sh_err(int status, const char *fmt, ...) in sh_err() argument
215 va_start(ap, fmt); in sh_err()
216 exvwarning(errno, fmt, ap); in sh_err()
222 sh_verr(int status, const char *fmt, va_list ap) in sh_verr() argument
224 exvwarning(errno, fmt, ap); in sh_verr()
229 sh_errx(int status, const char *fmt, ...) in sh_errx() argument
233 va_start(ap, fmt); in sh_errx()
234 exvwarning(-1, fmt, ap); in sh_errx()
240 sh_verrx(int status, const char *fmt, va_list ap) in sh_verrx() argument
242 exvwarning(-1, fmt, ap); in sh_verrx()
[all …]
Doutput.c211 outfmt(struct output *file, const char *fmt, ...) in outfmt() argument
215 va_start(ap, fmt); in outfmt()
216 doformat(file, fmt, ap); in outfmt()
222 out1fmt(const char *fmt, ...) in out1fmt() argument
226 va_start(ap, fmt); in out1fmt()
227 doformat(out1, fmt, ap); in out1fmt()
232 dprintf(const char *fmt, ...) in dprintf() argument
236 va_start(ap, fmt); in dprintf()
237 doformat(out2, fmt, ap); in dprintf()
243 fmtstr(char *outbuf, size_t length, const char *fmt, ...) in fmtstr() argument
[all …]
Dshow.c283 trace(const char *fmt, ...) in trace() argument
290 va_start(va, fmt); in trace()
291 (void) vfprintf(tracefile, fmt, va); in trace()
297 tracev(const char *fmt, va_list va) in tracev() argument
302 (void) vfprintf(tracefile, fmt, va); in tracev()
/system/core/liblog/
Dlogd_write.c190 int __android_log_vprint(int prio, const char *tag, const char *fmt, va_list ap) in __android_log_vprint() argument
194 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_vprint()
199 int __android_log_print(int prio, const char *tag, const char *fmt, ...) in __android_log_print() argument
204 va_start(ap, fmt); in __android_log_print()
205 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_print()
211 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...) in __android_log_buf_print() argument
216 va_start(ap, fmt); in __android_log_buf_print()
217 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap); in __android_log_buf_print()
224 const char *fmt, ...) in __android_log_assert() argument
228 if (fmt) { in __android_log_assert()
[all …]
/system/core/include/android/
Dlog.h99 int __android_log_print(int prio, const char *tag, const char *fmt, ...)
110 const char *fmt, va_list ap);
117 const char *fmt, ...)
/system/core/libcutils/
Dklog.c47 void klog_write(int level, const char *fmt, ...) in klog_write() argument
55 va_start(ap, fmt); in klog_write()
56 vsnprintf(buf, LOG_BUF_MAX, fmt, ap); in klog_write()
/system/core/libsysutils/src/
DSocketClient.cpp46 const char* fmt; in sendMsg() local
51 fmt = "%.3d %s (%s)"; in sendMsg()
54 fmt = "%.3d %s"; in sendMsg()
58 len = snprintf(tmp, sizeof tmp, fmt, code, msg, arg); in sendMsg()
61 snprintf(buf, len+1, fmt, code, msg, arg); in sendMsg()
/system/core/include/cutils/
Dlog.h364 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument
365 android_vprintLog(priority, NULL, tag, fmt, args)
420 #define android_printLog(prio, tag, fmt...) \ argument
421 __android_log_print(prio, tag, fmt)
423 #define android_vprintLog(prio, cond, tag, fmt...) \ argument
424 __android_log_vprint(prio, tag, fmt)
441 #define android_printAssert(cond, tag, fmt...) \ argument
443 __android_second(0, ## fmt, NULL) __android_rest(fmt))
475 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fmt, ...);
Dklog.h23 void klog_write(int level, 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
Dext4.h25 #define EXT4_ERROR_INODE(inode, fmt, a...) ext4_error_inode(__func__, (inode), (fmt), ## a); argument
27 #define EXT4_ERROR_FILE(file, fmt, a...) ext4_error_file(__func__, (file), (fmt), ## a); argument
/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()
Dparser.h38 void parse_error(struct parse_state *state, const char *fmt, ...);
/system/core/fastboot/
Dengine.c44 char *mkmsg(const char *fmt, ...) in mkmsg() argument
50 va_start(ap, fmt); in mkmsg()
51 vsprintf(buf, fmt, ap); in mkmsg()
97 static Action *queue_action(unsigned op, const char *fmt, ...) in queue_action() argument
106 va_start(ap, fmt); in queue_action()
107 cmdsize = vsnprintf(a->cmd, sizeof(a->cmd), fmt, ap); in queue_action()
Dfastboot.h57 void die(const char *fmt, ...);
/system/core/libpixelflinger/codeflinger/
Ddisassem.c312 int fmt; in disasm() local
314 fmt = 0; in disasm()
344 ++fmt; in disasm()
546 ++fmt; in disasm()
547 if (fmt == 1) in disasm()
DGGLAssembler.h226 pixel_t(int r, const GGLFormat* fmt, int f=0)
227 : reg_t(r, f), format(*fmt) { in reg_t()
229 void setTo(int r, const GGLFormat* fmt, int f=0) {
230 reg_t::setTo(r, f); format = *fmt;
/system/extras/tests/framebuffer/
Dmdp_test.c31 static int open_file(char *name, int *fd, int *len, int *fmt) in open_file() argument
43 *fmt = MDP_Y_CBCR_H2V2; in open_file()
45 *fmt = MDP_RGB_565; in open_file()
64 printf("Successfully opened file %s (fmt=%d len=%d fd=%d)\n", fn, *fmt, in open_file()
/system/extras/tests/lib/testUtil/
DtestUtil.c145 void testPrint(FILE *stream, const char *fmt, ...) in testPrint() argument
150 va_start(args, fmt); in testPrint()
151 vsnprintf(line, sizeof(line), fmt, args); in testPrint()
157 vfprintf(stream, fmt, args); in testPrint()
/system/extras/tests/include/
DtestUtil.h49 void testPrint(FILE *stream, const char *fmt, ...);
/system/core/adb/
Dadb.h236 void fatal(const char *fmt, ...);
237 void fatal_errno(const char *fmt, ...);
/system/core/libnetutils/
Ddhcpclient.c65 void printerr(char *fmt, ...) in printerr() argument
69 va_start(ap, fmt); in printerr()
70 vsnprintf(errmsg, sizeof(errmsg), fmt, ap); in printerr()

12