| /NextBSD/sys/dev/nxge/include/ |
| HD | xge-debug.h | 133 #define xge_trace_aux(fmt) xge_os_vatrace(g_xge_os_tracebuf, fmt) argument 135 #define xge_trace_aux(fmt) xge_os_vaprintf(fmt) argument 149 #define xge_debug(module, level, fmt) { \ argument 153 xge_trace_aux(fmt); \ 159 #define xge_trace_aux(fmt...) xge_os_trace(g_xge_os_tracebuf, fmt) argument 161 #define xge_trace_aux(fmt...) xge_os_printf(fmt) argument 164 #define xge_debug(module, level, fmt...) { \ argument 168 xge_trace_aux(fmt); \ 175 static inline void xge_debug_stats(xge_debug_level_e level, char *fmt, ...) { in xge_debug_stats() argument 177 xge_debug(module, level, fmt); in xge_debug_stats() [all …]
|
| /NextBSD/contrib/libpcap/ |
| HD | bpf_image.c | 55 const char *fmt, *op; local 64 fmt = "0x%x"; 70 fmt = "#%d"; 75 fmt = ""; 80 fmt = "[%d]"; 85 fmt = "[%d]"; 90 fmt = "[%d]"; 95 fmt = "#pktlen"; 100 fmt = "[x + %d]"; 105 fmt = "[x + %d]"; [all …]
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | doublest.c | 110 convert_floatformat_to_doublest (const struct floatformat *fmt, in convert_floatformat_to_doublest() argument 133 if (fmt->byteorder == floatformat_littlebyte_bigword) in convert_floatformat_to_doublest() 139 longswaps = fmt->totalsize / FLOATFORMAT_CHAR_BIT; in convert_floatformat_to_doublest() 144 newfrom = (unsigned char *) xmalloc (fmt->totalsize); in convert_floatformat_to_doublest() 164 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in convert_floatformat_to_doublest() 165 fmt->exp_start, fmt->exp_len); in convert_floatformat_to_doublest() 170 mant_bits_left = fmt->man_len; in convert_floatformat_to_doublest() 171 mant_off = fmt->man_start; in convert_floatformat_to_doublest() 174 special_exponent = exponent == 0 || exponent == fmt->exp_nan; in convert_floatformat_to_doublest() 181 exponent -= fmt->exp_bias; in convert_floatformat_to_doublest() [all …]
|
| /NextBSD/contrib/gcclibs/libiberty/ |
| HD | floatformat.c | 64 static int floatformat_always_valid (const struct floatformat *fmt, 68 floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED, in floatformat_always_valid() 144 static int floatformat_i387_ext_is_valid (const struct floatformat *fmt, 148 floatformat_i387_ext_is_valid (const struct floatformat *fmt, const void *from) in floatformat_i387_ext_is_valid() argument 157 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid() 158 fmt->exp_start, fmt->exp_len); in floatformat_i387_ext_is_valid() 159 int_bit = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid() 160 fmt->man_start, 1); in floatformat_i387_ext_is_valid() 302 floatformat_to_double (const struct floatformat *fmt, in floatformat_to_double() argument 313 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_to_double() [all …]
|
| /NextBSD/contrib/binutils/libiberty/ |
| HD | floatformat.c | 64 static int floatformat_always_valid (const struct floatformat *fmt, 68 floatformat_always_valid (const struct floatformat *fmt ATTRIBUTE_UNUSED, in floatformat_always_valid() 144 static int floatformat_i387_ext_is_valid (const struct floatformat *fmt, 148 floatformat_i387_ext_is_valid (const struct floatformat *fmt, const void *from) in floatformat_i387_ext_is_valid() argument 157 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid() 158 fmt->exp_start, fmt->exp_len); in floatformat_i387_ext_is_valid() 159 int_bit = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_i387_ext_is_valid() 160 fmt->man_start, 1); in floatformat_i387_ext_is_valid() 302 floatformat_to_double (const struct floatformat *fmt, in floatformat_to_double() argument 313 exponent = get_field (ufrom, fmt->byteorder, fmt->totalsize, in floatformat_to_double() [all …]
|
| /NextBSD/usr.bin/printf/ |
| HD | printf.c | 115 char *format, *fmt, *start; in main() local 154 fmt = format = *argv; in main() 155 escape(fmt, 1, &len); /* backslash interpretation */ in main() 165 start = fmt; in main() 166 while (fmt < format + len) { in main() 167 if (fmt[0] == '%') { in main() 168 fwrite(start, 1, fmt - start, stdout); in main() 169 if (fmt[1] == '%') { in main() 172 fmt += 2; in main() 174 fmt = printf_doformat(fmt, &rval); in main() [all …]
|
| /NextBSD/contrib/libxo/libxo/ |
| HD | xo.h | 175 xo_emit_hv (xo_handle_t *xop, const char *fmt, va_list vap); 178 xo_emit_h (xo_handle_t *xop, const char *fmt, ...); 181 xo_emit (const char *fmt, ...); 185 xo_emit_hvp (xo_handle_t *xop, const char *fmt, va_list vap) in xo_emit_hvp() argument 187 return xo_emit_hv(xop, fmt, vap); in xo_emit_hvp() 192 xo_emit_hp (xo_handle_t *xop, const char *fmt, ...) in xo_emit_hp() argument 195 va_start(vap, fmt); in xo_emit_hp() 196 int rc = xo_emit_hv(xop, fmt, vap); in xo_emit_hp() 203 xo_emit_p (const char *fmt, ...) in xo_emit_p() argument 206 va_start(vap, fmt); in xo_emit_p() [all …]
|
| /NextBSD/lib/libc/gen/ |
| HD | err.c | 86 _err(int eval, const char *fmt, ...) in _err() argument 89 va_start(ap, fmt); in _err() 90 verrc(eval, errno, fmt, ap); in _err() 95 verr(int eval, const char *fmt, va_list ap) in verr() argument 97 verrc(eval, errno, fmt, ap); in verr() 101 errc(int eval, int code, const char *fmt, ...) in errc() argument 104 va_start(ap, fmt); in errc() 105 verrc(eval, code, fmt, ap); in errc() 110 verrc(int eval, int code, const char *fmt, va_list ap) in verrc() argument 115 if (fmt != NULL) { in verrc() [all …]
|
| /NextBSD/contrib/ldns/drill/ |
| HD | error.c | 17 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 …]
|
| /NextBSD/sys/dev/vxge/include/ |
| HD | vxge-os-debug.h | 41 #define vxge_trace_aux(hldev, vpid, fmt, ...) \ argument 42 vxge_os_vasprintf(hldev, vpid, fmt, __VA_ARGS__) 44 #define vxge_trace_aux(hldev, vpid, fmt, ...) \ 45 vxge_os_vaprintf(hldev, vpid, fmt, __VA_ARGS__) 48 #define vxge_debug(module, level, hldev, vpid, fmt, ...) \ argument 55 vpid, fmt, __VA_ARGS__); \ 72 #define vxge_debug_driver(level, hldev, vpid, fmt, ...) \ argument 75 vpid, fmt, __VA_ARGS__); 77 #define vxge_debug_driver(level, hldev, vpid, fmt, ...) 94 #define vxge_debug_osdep(level, hldev, vpid, fmt, ...) \ argument [all …]
|
| /NextBSD/usr.bin/hexdump/ |
| HD | odsyntax.c | 81 fshead->nextfu->fmt[TYPE_OFFSET] = *optarg; in oldsyntax() 82 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = in oldsyntax() 86 fshead->nextfu->fmt = empty; in oldsyntax() 87 fshead->nextfs->nextfu->fmt = padding; in oldsyntax() 273 fshead->nextfu->fmt[TYPE_OFFSET] = 'x'; in odoffset() 274 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = 'x'; in odoffset() 276 fshead->nextfu->fmt[TYPE_OFFSET] = 'd'; in odoffset() 277 fshead->nextfs->nextfu->fmt[TYPE_OFFSET] = 'd'; in odoffset() 285 odformat(const char *fmt) in odformat() argument 289 while (*fmt != '\0') { in odformat() [all …]
|
| /NextBSD/contrib/openbsm/bin/auditdistd/ |
| HD | pjdlog.h | 54 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 …]
|
| HD | pjdlog.c | 274 pjdlog_prefix_set(const char *fmt, ...) in pjdlog_prefix_set() argument 280 va_start(ap, fmt); in pjdlog_prefix_set() 281 pjdlogv_prefix_set(fmt, ap); in pjdlog_prefix_set() 290 pjdlogv_prefix_set(const char *fmt, va_list ap) in pjdlogv_prefix_set() argument 295 assert(fmt != NULL); in pjdlogv_prefix_set() 299 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap); in pjdlogv_prefix_set() 337 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...) in pjdlog_common() argument 343 va_start(ap, fmt); in pjdlog_common() 344 pjdlogv_common(loglevel, debuglevel, error, fmt, ap); in pjdlog_common() 353 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt, in pjdlogv_common() argument [all …]
|
| /NextBSD/sbin/hastd/ |
| HD | pjdlog.h | 54 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 …]
|
| HD | pjdlog.c | 270 pjdlog_prefix_set(const char *fmt, ...) in pjdlog_prefix_set() argument 276 va_start(ap, fmt); in pjdlog_prefix_set() 277 pjdlogv_prefix_set(fmt, ap); in pjdlog_prefix_set() 286 pjdlogv_prefix_set(const char *fmt, va_list ap) in pjdlogv_prefix_set() argument 291 assert(fmt != NULL); in pjdlogv_prefix_set() 295 vsnprintf(pjdlog_prefix, sizeof(pjdlog_prefix), fmt, ap); in pjdlogv_prefix_set() 333 pjdlog_common(int loglevel, int debuglevel, int error, const char *fmt, ...) in pjdlog_common() argument 339 va_start(ap, fmt); in pjdlog_common() 340 pjdlogv_common(loglevel, debuglevel, error, fmt, ap); in pjdlog_common() 349 pjdlogv_common(int loglevel, int debuglevel, int error, const char *fmt, in pjdlogv_common() argument [all …]
|
| /NextBSD/lib/libpjdlog/ |
| HD | pjdlog.h | 61 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 …]
|
| /NextBSD/contrib/ncurses/ncurses/base/ |
| HD | lib_printw.c | 45 printw(const char *fmt,...) in NCURSES_EXPORT() 52 va_start(argq, fmt); in NCURSES_EXPORT() 54 _nc_visbuf(fmt), _nc_varargs(fmt, argq))); in NCURSES_EXPORT() 58 va_start(argp, fmt); in NCURSES_EXPORT() 59 code = vwprintw(stdscr, fmt, argp); in NCURSES_EXPORT() 66 wprintw(WINDOW *win, const char *fmt,...) in wprintw() argument 73 va_start(argq, fmt); in wprintw() 75 (void *) win, _nc_visbuf(fmt), _nc_varargs(fmt, argq))); in wprintw() 79 va_start(argp, fmt); in wprintw() 80 code = vwprintw(win, fmt, argp); in wprintw() [all …]
|
| /NextBSD/contrib/tcpdump/ |
| HD | smbutil.c | 326 unsigned int val, const char *fmt) in write_bits() argument 328 const char *p = fmt; in write_bits() 331 while ((p = strchr(fmt, '|'))) { in write_bits() 332 size_t l = PTR_DIFF(p, fmt); in write_bits() 334 ND_PRINT((ndo, "%.*s ", (int)l, fmt)); in write_bits() 335 fmt = p + 1; in write_bits() 437 const u_char *buf, const char *fmt, const u_char *maxbuf, in smb_fdata1() argument 443 while (*fmt && buf<maxbuf) { in smb_fdata1() 444 switch (*fmt) { in smb_fdata1() 449 fmt++; in smb_fdata1() [all …]
|
| /NextBSD/lib/libcam/ |
| HD | scsi_cmdparse.c | 105 void *puthook, const char *fmt, va_list ap) in do_buff_decode() argument 144 switch(letter = *fmt) { in do_buff_decode() 150 fmt++; in do_buff_decode() 154 while (*fmt && (*fmt != '\n')) in do_buff_decode() 155 fmt++; in do_buff_decode() 156 if (fmt) in do_buff_decode() 157 fmt++; /* Skip '\n' */ in do_buff_decode() 161 fmt++; in do_buff_decode() 168 fmt++; /* Skip '{' */ in do_buff_decode() 169 while (*fmt && (*fmt != '}')) { in do_buff_decode() [all …]
|
| /NextBSD/contrib/ntp/sntp/libevent/ |
| HD | log.c | 111 event_err(int eval, const char *fmt, ...) in event_err() argument 115 va_start(ap, fmt); in event_err() 116 event_logv_(EVENT_LOG_ERR, strerror(errno), fmt, ap); in event_err() 122 event_warn(const char *fmt, ...) in event_warn() argument 126 va_start(ap, fmt); in event_warn() 127 event_logv_(EVENT_LOG_WARN, strerror(errno), fmt, ap); in event_warn() 132 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) in event_sock_err() argument 137 va_start(ap, fmt); in event_sock_err() 138 event_logv_(EVENT_LOG_ERR, evutil_socket_error_to_string(err), fmt, ap); in event_sock_err() 144 event_sock_warn(evutil_socket_t sock, const char *fmt, ...) in event_sock_warn() argument [all …]
|
| /NextBSD/contrib/binutils/binutils/ |
| HD | unwind-ia64.c | 176 #define UNW_DEC_PROLOGUE(fmt, body, rlen, arg) \ argument 182 fmt, body ? "body" : "prologue", (unsigned long) rlen); \ 186 #define UNW_DEC_PROLOGUE_GR(fmt, rlen, mask, grsave, arg) \ argument 220 fmt, maskstr, regname, (unsigned long) rlen); \ 224 #define UNW_DEC_FR_MEM(fmt, frmask, arg) \ argument 230 printf ("\t%s:fr_mem(frmask=[%s])\n", fmt, frstr); \ 234 #define UNW_DEC_GR_MEM(fmt, grmask, arg) \ argument 240 printf ("\t%s:gr_mem(grmask=[%s])\n", fmt, grstr); \ 244 #define UNW_DEC_FRGR_MEM(fmt, grmask, frmask, arg) \ argument 251 printf ("\t%s:frgr_mem(grmask=[%s],frmask=[%s])\n", fmt, grstr, frstr); \ [all …]
|
| /NextBSD/contrib/pf/libevent/ |
| HD | log.c | 66 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 …]
|
| /NextBSD/contrib/gcc/ |
| HD | c-cppbuiltin.c | 93 const struct real_format *fmt; in builtin_define_float_constants() local 99 fmt = REAL_MODE_FORMAT (TYPE_MODE (type)); in builtin_define_float_constants() 100 gcc_assert (fmt->b != 10); in builtin_define_float_constants() 104 builtin_define_with_int_value ("__FLT_RADIX__", fmt->b); in builtin_define_float_constants() 105 log10_b = log10_2 * fmt->log2_b; in builtin_define_float_constants() 109 builtin_define_with_int_value (name, fmt->p); in builtin_define_float_constants() 118 dig = (fmt->p - 1) * log10_b; in builtin_define_float_constants() 124 sprintf (buf, "(%d)", fmt->emin); in builtin_define_float_constants() 134 min_10_exp = (fmt->emin - 1) * log10_b; in builtin_define_float_constants() 141 builtin_define_with_int_value (name, fmt->emax); in builtin_define_float_constants() [all …]
|
| /NextBSD/contrib/tcsh/ |
| HD | tc.printf.c | 68 int fmt; in doprnt() local 135 fmt = (unsigned char) *f; in doprnt() 136 if (fmt != 'S' && fmt != 'Q' && isupper(fmt)) { in doprnt() 138 fmt = tolower(fmt); in doprnt() 141 switch (fmt) { /* do the format */ in doprnt() 186 fmt = 'x'; in doprnt() 210 if (fmt == 'u') { /* unsigned decimal */ in doprnt() 215 else if (fmt == 'o') { /* octal */ in doprnt() 222 else if (fmt == 'x') { /* hex */ in doprnt() 268 if (fmt == 'Q' && *Bp & QUOTE) in doprnt() [all …]
|
| /NextBSD/usr.bin/seq/ |
| HD | seq.c | 83 char *fmt = NULL; in main() local 102 fmt = optarg; in main() 112 if (!fmt) in main() 157 if (fmt != NULL) { in main() 158 if (!valid_format(fmt)) in main() 159 errx(1, "invalid format string: `%s'", fmt); in main() 160 fmt = unescape(fmt); in main() 161 if (!valid_format(fmt)) in main() 168 fmt = generate_format(first, incr, last, equalize, pad); in main() 172 printf(fmt, first); in main() [all …]
|