Lines Matching refs:format

232 pfprint_sint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
240 return (dt_printf(dtp, fp, format,
243 return (dt_printf(dtp, fp, format,
246 return (dt_printf(dtp, fp, format,
249 return (dt_printf(dtp, fp, format,
258 pfprint_uint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
265 return (dt_printf(dtp, fp, format,
268 return (dt_printf(dtp, fp, format,
271 return (dt_printf(dtp, fp, format,
274 return (dt_printf(dtp, fp, format,
282 pfprint_dint(dtrace_hdl_t *dtp, FILE *fp, const char *format,
286 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal));
288 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal));
293 pfprint_fp(dtrace_hdl_t *dtp, FILE *fp, const char *format,
301 return (dt_printf(dtp, fp, format,
304 return (dt_printf(dtp, fp, format,
307 return (dt_printf(dtp, fp, format,
316 pfprint_addr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
339 return (dt_printf(dtp, fp, format, s));
344 pfprint_mod(dtrace_hdl_t *dtp, FILE *fp, const char *format,
347 return (dt_print_mod(dtp, fp, format, (caddr_t)addr));
352 pfprint_umod(dtrace_hdl_t *dtp, FILE *fp, const char *format,
355 return (dt_print_umod(dtp, fp, format, (caddr_t)addr));
360 pfprint_uaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
392 return (dt_printf(dtp, fp, format, s));
397 pfprint_stack(dtrace_hdl_t *dtp, FILE *fp, const char *format,
412 * be using a single format specifier to be formatting multiple lines
429 err = dt_print_ustack(dtp, fp, format, addr, rec->dtrd_arg);
433 err = dt_print_stack(dtp, fp, format, addr, rec->dtrd_arg,
448 pfprint_time(dtrace_hdl_t *dtp, FILE *fp, const char *format,
458 * Below, we turn this into the canonical adb/mdb /[yY] format,
476 return (dt_printf(dtp, fp, format, buf));
486 pfprint_time822(dtrace_hdl_t *dtp, FILE *fp, const char *format,
496 return (dt_printf(dtp, fp, format, buf));
501 pfprint_port(dtrace_hdl_t *dtp, FILE *fp, const char *format,
509 return (dt_printf(dtp, fp, format, sv->s_name));
512 return (dt_printf(dtp, fp, format, buf));
517 pfprint_inetaddr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
532 return (dt_printf(dtp, fp, format, host->h_name));
536 return (dt_printf(dtp, fp, format, host->h_name));
539 return (dt_printf(dtp, fp, format, s));
544 pfprint_cstr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
551 return (dt_printf(dtp, fp, format, s));
556 pfprint_wstr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
563 return (dt_printf(dtp, fp, format, ws));
568 pfprint_estr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
577 n = dt_printf(dtp, fp, format, s);
583 pfprint_echr(dtrace_hdl_t *dtp, FILE *fp, const char *format,
602 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal));
607 pfprint_pct(dtrace_hdl_t *dtp, FILE *fp, const char *format,
623 * Printf format conversion dictionary. This table should match the set of
812 char *format;
815 (format = strdup(s)) == NULL) {
820 pfv->pfv_format = format;
826 for (q = format; (p = strchr(q, '%')) != NULL; q = *p ? p + 1 : p) {
884 yywarn("format conversion #%u has more than "
906 yywarn("format conversion #%u has more than "
935 yywarn("format conversion #%u uses unsupported "
936 "positional format (%%n$)\n", pfv->pfv_argc);
945 yywarn("format conversion #%u cannot be combined "
946 "with other format flags: %%%%\n", pfv->pfv_argc);
952 yywarn("format conversion #%u name expected before "
953 "end of format string\n", pfv->pfv_argc);
975 yywarn("format conversion #%u is undefined: %%%s\n",
982 if (*q != '\0' || *format == '\0') {
1032 "%s( ) format string is empty\n", func);
1127 * Fill in the proposed final format string by prepending any
1128 * size-related prefixes to the pfconv's format string. The
1129 * pfc_check() function below may optionally modify the format
1145 * Validate the format conversion against the value node type.
1146 * If the conversion is good, create the descriptor format
1148 * size prefixes with the conversion's native format string.
1163 "required by this format string\n", func, j);
1263 pfprint_average(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1271 return (dt_printf(dtp, fp, format,
1277 pfprint_stddev(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1285 return (dt_printf(dtp, fp, format,
1291 pfprint_quantize(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1299 pfprint_lquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1307 pfprint_llquantize(dtrace_hdl_t *dtp, FILE *fp, const char *format,
1323 char format[64] = "%";
1355 char *f = format + 1; /* skip initial '%' */
1375 * this is part of the printa() format string.
1527 * don't add the width to the format string. See the block
1535 f += snprintf(f, sizeof (format), "%d", ABS(width));
1538 f += snprintf(f, sizeof (format), ".%d", prec);
1543 if (func(dtp, fp, format, pfd, addr, size, normal) < 0)
1636 * The only way to have the format string set to the value
1746 * If the output format is not %s then we assume that we have
1747 * been given a correctly-sized format string, so we copy the
1748 * true format name including the size modifier. If the output
1749 * format is %s, then either the input format is %s as well or
1751 * must set pfd_fmt to be the output format conversion "s".
1784 * format string, plus three times the number of conversions (each
1789 char *format = alloca(formatlen);
1790 char *f = format;
1831 f += snprintf(f, sizeof (format), "%d", width);
1834 f += snprintf(f, sizeof (format), ".%d", prec);
1837 * If the output format is %s, then either %s is the underlying
1840 * name of the conversion (pfc_name) into the pickled format
1854 assert(f < format + formatlen);
1855 (void) strncpy(s, format, len);
1857 return ((size_t)(f - format));