Lines Matching defs:format

230 pfprint_sint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
238 return (dt_printf(dtp, fp, format,
241 return (dt_printf(dtp, fp, format,
244 return (dt_printf(dtp, fp, format,
247 return (dt_printf(dtp, fp, format,
256 pfprint_uint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
263 return (dt_printf(dtp, fp, format,
266 return (dt_printf(dtp, fp, format,
269 return (dt_printf(dtp, fp, format,
272 return (dt_printf(dtp, fp, format,
280 pfprint_dint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
284 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal));
286 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal));
291 pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format,
299 return (dt_printf(dtp, fp, format,
302 return (dt_printf(dtp, fp, format,
305 return (dt_printf(dtp, fp, format,
314 pfprint_addr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
337 return (dt_printf(dtp, fp, format, s));
342 pfprint_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format,
345 return (dt_print_mod(dtp, fp, format, (caddr_t)addr));
350 pfprint_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format,
353 return (dt_print_umod(dtp, fp, format, (caddr_t)addr));
358 pfprint_uaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
390 return (dt_printf(dtp, fp, format, s));
395 pfprint_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format,
410 * be using a single format specifier to be formatting multiple lines
427 err = dt_print_ustack(dtp, fp, format, addr, rec->dtrd_arg);
431 err = dt_print_stack(dtp, fp, format, addr, rec->dtrd_arg,
446 pfprint_time(dtrace_hdl_t *dtp, FILE *fp, const char *format,
456 * Below, we turn this into the canonical adb/mdb /[yY] format,
474 return (dt_printf(dtp, fp, format, buf));
484 pfprint_time822(dtrace_hdl_t *dtp, FILE *fp, const char *format,
494 return (dt_printf(dtp, fp, format, buf));
499 pfprint_port(dtrace_hdl_t *dtp, FILE *fp, const char *format,
507 return (dt_printf(dtp, fp, format, sv->s_name));
510 return (dt_printf(dtp, fp, format, buf));
515 pfprint_inetaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
530 return (dt_printf(dtp, fp, format, host->h_name));
534 return (dt_printf(dtp, fp, format, host->h_name));
537 return (dt_printf(dtp, fp, format, s));
542 pfprint_cstr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
549 return (dt_printf(dtp, fp, format, s));
554 pfprint_wstr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
561 return (dt_printf(dtp, fp, format, ws));
566 pfprint_estr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
575 n = dt_printf(dtp, fp, format, s);
581 pfprint_echr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
600 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal));
605 pfprint_pct(dtrace_hdl_t *dtp, FILE *fp, const char *format,
621 * Printf format conversion dictionary. This table should match the set of
810 char *format;
813 (format = strdup(s)) == NULL) {
818 pfv->pfv_format = format;
824 for (q = format; (p = strchr(q, '%')) != NULL; q = *p ? p + 1 : p) {
882 yywarn("format conversion #%u has more than "
904 yywarn("format conversion #%u has more than "
933 yywarn("format conversion #%u uses unsupported "
934 "positional format (%%n$)\n", pfv->pfv_argc);
943 yywarn("format conversion #%u cannot be combined "
944 "with other format flags: %%%%\n", pfv->pfv_argc);
950 yywarn("format conversion #%u name expected before "
951 "end of format string\n", pfv->pfv_argc);
973 yywarn("format conversion #%u is undefined: %%%s\n",
980 if (*q != '\0' || *format == '\0') {
1030 "%s( ) format string is empty\n", func);
1125 * Fill in the proposed final format string by prepending any
1126 * size-related prefixes to the pfconv's format string. The
1127 * pfc_check() function below may optionally modify the format
1143 * Validate the format conversion against the value node type.
1144 * If the conversion is good, create the descriptor format
1146 * size prefixes with the conversion's native format string.
1161 "required by this format string\n", func, j);
1261 pfprint_average(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1269 return (dt_printf(dtp, fp, format,
1275 pfprint_stddev(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1283 return (dt_printf(dtp, fp, format,
1289 pfprint_quantize(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1297 pfprint_lquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1313 char format[64] = "%";
1345 char *f = format + 1; /* skip initial '%' */
1365 * this is part of the printa() format string.
1514 * don't add the width to the format string. See the block
1522 f += snprintf(f, sizeof (format), "%d", ABS(width));
1525 f += snprintf(f, sizeof (format), ".%d", prec);
1530 if (func(dtp, fp, format, pfd, addr, size, normal) < 0)
1623 * The only way to have the format string set to the value
1733 * If the output format is not %s then we assume that we have
1734 * been given a correctly-sized format string, so we copy the
1735 * true format name including the size modifier. If the output
1736 * format is %s, then either the input format is %s as well or
1738 * must set pfd_fmt to be the output format conversion "s".
1771 * format string, plus three times the number of conversions (each
1776 char *format = alloca(formatlen);
1777 char *f = format;
1818 f += snprintf(f, sizeof (format), "%d", width);
1821 f += snprintf(f, sizeof (format), ".%d", prec);
1824 * If the output format is %s, then either %s is the underlying
1827 * name of the conversion (pfc_name) into the pickled format
1841 assert(f < format + formatlen);
1842 (void) strncpy(s, format, len);
1844 return ((size_t)(f - format));