Home
last modified time | relevance | path

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

12345678910>>...57

/freebsd/sys/dev/bhnd/
H A Dbhnd_debug.h96 #define _BHND_PRINT(fn, level, fmt, ...) \ argument
99 fn "[BHND " level##MSG "] %s:%d => " fmt "\n", \
103 #define _BHND_PRINT(fn, level, fmt, ...) \ argument
106 fn "bhnd: " fmt "\n", ## __VA_ARGS__); \
113 #define _BHND_LOGPRINT(level, fmt, ...) \ argument
114 _BHND_PRINT(_BHND_RAWPRINTFN, level, fmt, ## __VA_ARGS__)
115 #define _BHND_DEVPRINT(dev, level, fmt, ...) \ argument
116 _BHND_PRINT(_BHND_DEVPRINTFN(dev), level, fmt, ## __VA_ARGS__)
118 #define BHND_ERROR(fmt, ...) \ argument
119 _BHND_LOGPRINT(BHND_ERROR_, fmt, ## __VA_ARGS__);
[all …]
/freebsd/contrib/unifdef/FreeBSD/
H A Derr.c33 err(int eval, const char *fmt, ...) in err() argument
36 va_start(ap, fmt); in err()
37 verrc(eval, errno, fmt, ap); in err()
42 verr(int eval, const char *fmt, va_list ap) in verr() argument
44 verrc(eval, errno, fmt, ap); in verr()
48 errc(int eval, int code, const char *fmt, ...) in errc() argument
51 va_start(ap, fmt); in errc()
52 verrc(eval, code, fmt, ap); in errc()
57 verrc(int eval, int code, const char *fmt, va_list ap) in verrc() argument
60 if (fmt != NULL) { in verrc()
[all …]
/freebsd/usr.bin/printf/
H A Dprintf.c97 char *format, *fmt, *start; in main() local
136 fmt = format = *argv; in main()
137 escape(fmt, 1, &len); /* backslash interpretation */ in main()
147 start = fmt; in main()
148 while (fmt < format + len) { in main()
149 if (fmt[0] == '%') { in main()
150 fwrite(start, 1, fmt - start, stdout); in main()
151 if (fmt[1] == '%') { in main()
154 fmt += 2; in main()
156 fmt = printf_doformat(fmt, &rval); in main()
[all …]
/freebsd/lib/libc/gen/
H A Derr.c69 _err(int eval, const char *fmt, ...) in _err() argument
72 va_start(ap, fmt); in _err()
73 verrc(eval, errno, fmt, ap); in _err()
78 verr(int eval, const char *fmt, va_list ap) in verr() argument
80 verrc(eval, errno, fmt, ap); in verr()
84 errc(int eval, int code, const char *fmt, ...) in errc() argument
87 va_start(ap, fmt); in errc()
88 verrc(eval, code, fmt, ap); in errc()
93 verrc(int eval, int code, const char *fmt, va_list ap) in verrc() argument
98 if (fmt != NULL) { in verrc()
[all …]
/freebsd/contrib/libxo/libxo/
H A Dxo.h204 xo_emit_hv (xo_handle_t *xop, const char *fmt, va_list vap);
207 xo_emit_h (xo_handle_t *xop, const char *fmt, ...);
210 xo_emit (const char *fmt, ...);
214 const char *fmt, va_list vap);
217 xo_emit_hf (xo_handle_t *xop, xo_emit_flags_t flags, const char *fmt, ...);
220 xo_emit_f (xo_emit_flags_t flags, const char *fmt, ...);
224 xo_emit_hvp (xo_handle_t *xop, const char *fmt, va_list vap) in xo_emit_hvp() argument
226 return xo_emit_hv(xop, fmt, vap); in xo_emit_hvp()
231 xo_emit_hp (xo_handle_t *xop, const char *fmt, ...) in xo_emit_hp() argument
234 va_start(vap, fmt); in xo_emit_hp()
[all …]
/freebsd/contrib/openbsm/bin/auditdistd/
H A Dpjdlog.h54 void pjdlog_prefix_set(const char *fmt, ...) __printflike(1, 2);
55 void pjdlogv_prefix_set(const char *fmt, va_list ap) __printflike(1, 0);
57 void pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt,
59 void pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
62 void pjdlog(int loglevel, const char *fmt, ...) __printflike(2, 3);
63 void pjdlogv(int loglevel, const char *fmt, va_list ap) __printflike(2, 0);
65 #define pjdlogv_emergency(fmt, ap) pjdlogv(LOG_EMERG, (fmt), (ap)) argument
67 #define pjdlogv_alert(fmt, ap) pjdlogv(LOG_ALERT, (fmt), (ap)) argument
69 #define pjdlogv_critical(fmt, ap) pjdlogv(LOG_CRIT, (fmt), (ap)) argument
71 #define pjdlogv_error(fmt, ap) pjdlogv(LOG_ERR, (fmt), (ap)) argument
[all …]
H A Dpjdlog.c275 pjdlog_prefix_set(const char *fmt, ...) in pjdlog_prefix_set() argument
281 va_start(ap, fmt); in pjdlog_prefix_set()
282 pjdlogv_prefix_set(fmt, ap); in pjdlog_prefix_set()
291 pjdlogv_prefix_set(const char *fmt, va_list ap) in pjdlogv_prefix_set() argument
296 assert(fmt != NULL); in pjdlogv_prefix_set()
300 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap); in pjdlogv_prefix_set()
338 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...) in pjdlog_common() argument
344 va_start(ap, fmt); in pjdlog_common()
345 pjdlogv_common(loglevel, debuglevel, error, fmt, ap); in pjdlog_common()
354 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt, in pjdlogv_common() argument
[all …]
/freebsd/sbin/hastd/
H A Dpjdlog.h54 void pjdlog_prefix_set(const char *fmt, ...) __printflike(1, 2);
55 void pjdlogv_prefix_set(const char *fmt, va_list ap) __printflike(1, 0);
57 void pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt,
59 void pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt,
62 void pjdlog(int loglevel, const char *fmt, ...) __printflike(2, 3);
63 void pjdlogv(int loglevel, const char *fmt, va_list ap) __printflike(2, 0);
65 #define pjdlogv_emergency(fmt, ap) pjdlogv(LOG_EMERG, (fmt), (ap)) argument
67 #define pjdlogv_alert(fmt, ap) pjdlogv(LOG_ALERT, (fmt), (ap)) argument
69 #define pjdlogv_critical(fmt, ap) pjdlogv(LOG_CRIT, (fmt), (ap)) argument
71 #define pjdlogv_error(fmt, ap) pjdlogv(LOG_ERR, (fmt), (ap)) argument
[all …]
H A Dpjdlog.c269 pjdlog_prefix_set(const char *fmt, ...) in pjdlog_prefix_set() argument
275 va_start(ap, fmt); in pjdlog_prefix_set()
276 pjdlogv_prefix_set(fmt, ap); in pjdlog_prefix_set()
285 pjdlogv_prefix_set(const char *fmt, va_list ap) in pjdlogv_prefix_set() argument
290 assert(fmt != NULL); in pjdlogv_prefix_set()
294 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap); in pjdlogv_prefix_set()
332 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...) in pjdlog_common() argument
338 va_start(ap, fmt); in pjdlog_common()
339 pjdlogv_common(loglevel, debuglevel, error, fmt, ap); in pjdlog_common()
348 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt, in pjdlogv_common() argument
[all …]
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_printw.c46 printw(const char *fmt, ...) in NCURSES_EXPORT()
53 va_start(argq, fmt); in NCURSES_EXPORT()
55 _nc_visbuf(fmt), _nc_varargs(fmt, argq))); in NCURSES_EXPORT()
59 va_start(argp, fmt); in NCURSES_EXPORT()
60 code = vw_printw(stdscr, fmt, argp); in NCURSES_EXPORT()
67 wprintw(WINDOW *win, const char *fmt, ...) in wprintw() argument
74 va_start(argq, fmt); in wprintw()
76 (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argq))); in wprintw()
80 va_start(argp, fmt); in wprintw()
81 code = vw_printw(win, fmt, argp); in wprintw()
[all …]
H A Dlib_scanw.c47 vwscanw(WINDOW *win, const char *fmt, va_list argp) in NCURSES_EXPORT()
53 if ((code = vsscanf(buf, fmt, argp)) == EOF) { in NCURSES_EXPORT()
62 vw_scanw(WINDOW *win, const char *fmt, va_list argp) in vw_scanw() argument
68 if ((code = vsscanf(buf, fmt, argp)) == EOF) { in vw_scanw()
77 scanw(const char *fmt, ...) in scanw() argument
82 T(("scanw(\"%s\",...) called", fmt)); in scanw()
84 va_start(ap, fmt); in scanw()
85 code = vw_scanw(stdscr, fmt, ap); in scanw()
91 wscanw(WINDOW *win, const char *fmt, ...) in wscanw() argument
96 T(("wscanw(%p,\"%s\",...) called", (void *) win, fmt)); in wscanw()
[all …]
H A Dsafe_sprintf.c54 _nc_printf_length(const char *fmt, va_list ap) in _nc_printf_length() argument
63 if (fmt == 0 || *fmt == '\0') in _nc_printf_length()
65 fmt_len = strlen(fmt) + 1; in _nc_printf_length()
73 while (*fmt != '\0') { in _nc_printf_length()
74 if (*fmt == '%') { in _nc_printf_length()
87 format[f++] = *fmt; in _nc_printf_length()
88 while (*++fmt != '\0' && len >= 0 && !done) { in _nc_printf_length()
89 format[f++] = *fmt; in _nc_printf_length()
91 if (isdigit(UChar(*fmt))) { in _nc_printf_length()
92 int num = *fmt - '0'; in _nc_printf_length()
[all …]
/freebsd/usr.bin/hexdump/
H A Dodsyntax.c75 fshead->nextfu->fmt[TYPE_OFFSET] = *optarg; in oldsyntax()
76 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = in oldsyntax()
80 fshead->nextfu->fmt = empty; in oldsyntax()
81 fshead->nextfs->nextfu->fmt = padding; in oldsyntax()
267 fshead->nextfu->fmt[TYPE_OFFSET] = 'x'; in odoffset()
268 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = 'x'; in odoffset()
270 fshead->nextfu->fmt[TYPE_OFFSET] = 'd'; in odoffset()
271 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = 'd'; in odoffset()
279 odformat(const char *fmt) in odformat() argument
283 while (*fmt != '\0') { in odformat()
[all …]
/freebsd/lib/libpjdlog/
H A Dpjdlog.h61 void pjdlog_prefix_set(const char *fmt, ...) __printflike(1, 2);
62 void pjdlogv_prefix_set(const char *fmt, va_list ap) __printflike(1, 0);
64 void pjdlog_prefix_push(const char *fmt, ...) __printflike(1, 2);
65 void pjdlogv_prefix_push(const char *fmt, va_list ap) __printflike(1, 0);
69 int debuglevel, int error, const char *fmt, va_list ap) __printflike(7, 0);
71 int debuglevel, int error, const char *fmt, ...) __printflike(7, 8);
74 int error, const char *fmt, va_list ap) __printflike(6, 0) __dead2;
76 int error, const char *fmt, ...) __printflike(6, 7) __dead2;
79 const char *failedexpr, const char *fmt, ...) __printflike(6, 7) __dead2;
85 #define pjdlogv_common(loglevel, debuglevel, error, fmt, ap) \ argument
[all …]
/freebsd/contrib/tcpdump/
H A Dsmbutil.c329 unsigned int val, const char *fmt) in write_bits() argument
331 const char *p = fmt; in write_bits()
334 while ((p = strchr(fmt, '|'))) { in write_bits()
335 u_int l = ND_BYTES_BETWEEN(fmt, p); in write_bits()
337 ND_PRINT("%.*s ", (int)l, fmt); in write_bits()
338 fmt = p + 1; in write_bits()
466 const u_char *buf, const char *fmt, const u_char *maxbuf, in smb_fdata1() argument
473 while (*fmt && buf<maxbuf) { in smb_fdata1()
474 switch (*fmt) { in smb_fdata1()
478 fmt++; in smb_fdata1()
[all …]
/freebsd/lib/libcam/
H A Dscsi_cmdparse.c105 void *puthook, const char *fmt, va_list *ap) in do_buff_decode() argument
141 switch(letter = *fmt) { in do_buff_decode()
147 fmt++; in do_buff_decode()
151 while (*fmt && (*fmt != '\n')) in do_buff_decode()
152 fmt++; in do_buff_decode()
153 if (fmt) in do_buff_decode()
154 fmt++; /* Skip '\n' */ in do_buff_decode()
158 fmt++; in do_buff_decode()
165 fmt++; /* Skip '{' */ in do_buff_decode()
166 while (*fmt && (*fmt != '}')) { in do_buff_decode()
[all …]
/freebsd/contrib/ntp/sntp/libevent/
H A Dlog.c102 event_err(int eval, const char *fmt, ...) in event_err() argument
106 va_start(ap, fmt); in event_err()
107 event_logv_(EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err()
113 event_warn(const char *fmt, ...) in event_warn() argument
117 va_start(ap, fmt); in event_warn()
118 event_logv_(EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn()
123 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) in event_sock_err() argument
128 va_start(ap, fmt); in event_sock_err()
129 event_logv_(EVENT_LOG_ERR, evutil_socket_error_to_string(err), fmt, ap); in event_sock_err()
135 event_sock_warn(evutil_socket_t sock, const char *fmt, ...) in event_sock_warn() argument
[all …]
/freebsd/contrib/libevent/
H A Dlog.c102 event_err(int eval, const char *fmt, ...) in event_err() argument
106 va_start(ap, fmt); in event_err()
107 event_logv_(EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err()
113 event_warn(const char *fmt, ...) in event_warn() argument
117 va_start(ap, fmt); in event_warn()
118 event_logv_(EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn()
123 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) in event_sock_err() argument
128 va_start(ap, fmt); in event_sock_err()
129 event_logv_(EVENT_LOG_ERR, evutil_socket_error_to_string(err), fmt, ap); in event_sock_err()
135 event_sock_warn(evutil_socket_t sock, const char *fmt, ...) in event_sock_warn() argument
[all …]
/freebsd/contrib/mandoc/
H A Dcompat_err.c42 vwarnxi(const char *fmt, va_list ap) in vwarnxi() argument
45 if (fmt != NULL) in vwarnxi()
46 vfprintf(stderr, fmt, ap); in vwarnxi()
50 vwarni(const char *fmt, va_list ap) in vwarni() argument
55 vwarnxi(fmt, ap); in vwarni()
56 if (fmt != NULL) in vwarni()
62 err(int eval, const char *fmt, ...) in err() argument
66 va_start(ap, fmt); in err()
67 vwarni(fmt, ap); in err()
73 errx(int eval, const char *fmt, ...) in errx() argument
[all …]
/freebsd/contrib/ldns/drill/
H A Derror.c17 warning_va_list(const char *fmt, va_list args) in warning_va_list() argument
20 vfprintf(stderr, fmt, args); in warning_va_list()
25 warning(const char *fmt, ...) in warning() argument
28 va_start(args, fmt); in warning()
29 warning_va_list(fmt, args); in warning()
34 error_va_list(const char *fmt, va_list args) in error_va_list() argument
37 vfprintf(stderr, fmt, args); in error_va_list()
42 error(const char *fmt, ...) in error() argument
45 va_start(args, fmt); in error()
46 error_va_list(fmt, args); in error()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkernel.h142 const char *fmt; member
147 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) in vscnprintf() argument
152 i = vsnprintf(buf, size, fmt, args); in vscnprintf()
158 scnprintf(char *buf, size_t size, const char *fmt, ...) in scnprintf() argument
163 va_start(args, fmt); in scnprintf()
164 i = vscnprintf(buf, size, fmt, args); in scnprintf()
176 #define pr_debug(fmt, ...) \ argument
179 log(LOG_DEBUG, fmt, ##__VA_ARGS__); \
181 #define pr_devel(fmt, ...) \ argument
182 log(LOG_DEBUG, pr_fmt(fmt), ##__VA_ARGS__)
[all …]
/freebsd/contrib/pf/libevent/
H A Dlog.c66 static void _warn_helper(int severity, int log_errno, const char *fmt,
102 event_err(int eval, const char *fmt, ...) in event_err() argument
106 va_start(ap, fmt); in event_err()
107 _warn_helper(_EVENT_LOG_ERR, errno, fmt, ap); in event_err()
113 event_warn(const char *fmt, ...) in event_warn() argument
117 va_start(ap, fmt); in event_warn()
118 _warn_helper(_EVENT_LOG_WARN, errno, fmt, ap); in event_warn()
123 event_errx(int eval, const char *fmt, ...) in event_errx() argument
127 va_start(ap, fmt); in event_errx()
128 _warn_helper(_EVENT_LOG_ERR, -1, fmt, ap); in event_errx()
[all …]
/freebsd/usr.bin/seq/
H A Dseq.c88 char pad, *fmt, *cur_print, *last_print, *prev_print; in main() local
93 fmt = NULL; in main()
114 fmt = optarg; in main()
124 if (!fmt) in main()
169 if (fmt != NULL) { in main()
170 if (!valid_format(fmt)) in main()
171 errx(1, "invalid format string: `%s'", fmt); in main()
172 fmt = unescape(fmt); in main()
173 if (!valid_format(fmt)) in main()
180 fmt = generate_format(first, incr, last, equalize, pad); in main()
[all …]
/freebsd/contrib/libfido2/openbsd-compat/
H A Derr.h23 err(int eval, const char *fmt, ...) in err() argument
28 va_start(ap, fmt); in err()
29 if (fmt != NULL) { in err()
30 vfprintf(stderr, fmt, ap); in err()
44 errx(int eval, const char *fmt, ...) in errx() argument
48 va_start(ap, fmt); in errx()
49 if (fmt != NULL) in errx()
50 vfprintf(stderr, fmt, ap); in errx()
57 warn(const char *fmt, ...) in warn() argument
62 va_start(ap, fmt); in warn()
[all …]
/freebsd/contrib/tcsh/
H A Dtc.printf.c65 int fmt; in doprnt() local
137 fmt = (unsigned char) *f; in doprnt()
138 if (fmt != 'S' && fmt != 'Q' && isupper(fmt)) { in doprnt()
140 fmt = tolower(fmt); in doprnt()
143 switch (fmt) { /* do the format */ in doprnt()
194 fmt = 'x'; in doprnt()
220 if (fmt == 'u') { /* unsigned decimal */ in doprnt()
225 else if (fmt == 'o') { /* octal */ in doprnt()
232 else if (fmt == 'x') { /* hex */ in doprnt()
285 if (fmt == 'Q' && *Bp & QUOTE) { in doprnt()
[all …]

12345678910>>...57