fmtstr
fmtstr(expdest, DIGITS(result), ARITH_FORMAT_STR, result);
fmtstr(statebuf, sizeof(statebuf), "Done(%d)",
fmtstr(s, 64, "[%d] %c ", jobno, c);
fmtstr(s, 64, " %c ", c);
fmtstr(s, 64, "%d ", (int)ps->pid);
fmtstr(s, sizeof(s), "%d", ind);
void fmtstr(char *, int, const char *, ...) __printflike(3, 4);
fmtstr(msg, 64, "%s unexpected (expecting %s)",
fmtstr(msg, 64, "%s unexpected", tokname[lasttoken]);
fmtstr(ppid, sizeof(ppid), "%d", (int)getppid());
static char fmtstr[] = { "%l:%M%P on %A, %d %B %Y" };
strftime(db, sizeof(db), fmtstr, localtime(&t));
static int fmtstr(char *buffer, size_t *currlen, size_t maxlen,
if (fmtstr(buffer, &currlen, maxlen,
static int fmtstr(char **, char **, size_t *, size_t *,
if (!fmtstr(sbuffer, buffer, &currlen, maxlen, strvalue,
#define aac_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
#define aic_kthread_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
#define mpi3mr_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
#define mrsas_kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg) \
kproc_create(func, farg, proc_ptr, flags, stackpgs, fmtstr, arg)
char fmtstr[AFMTSTR_LEN];
bzero(fmtstr, sizeof(fmtstr));
if (snd_afmt2str(*vchanformat, fmtstr, sizeof(fmtstr)) != *vchanformat)
strlcpy(fmtstr, "<ERROR>", sizeof(fmtstr));
ret = sysctl_handle_string(oidp, fmtstr, sizeof(fmtstr), req);
newfmt = snd_str2afmt(fmtstr);
const char *fmtstr;
fmtstr = "smplcnt=%ju, compcnt=%ju, maxctds=%hu, nctds=%hu";
fmtstr =
sbuf_printf(buf, fmtstr, (uintmax_t)smplcnt, (uintmax_t)compcnt,
fmtstr = "\n\t\t\t\t";
fmtstr = "{";
sbuf_cat(buf, fmtstr);
fmtstr = "ctd[%hu].";
fmtstr = "\"ctd\":%hu,";
sbuf_printf(buf, fmtstr, is32bit ?
fmtstr = "{mu=";
fmtstr = "\"mu\":";
sbuf_cat(buf, fmtstr);
fmtstr = is32bit ? ",cnt=%u}" : ",cnt=%ju}";
fmtstr = is32bit ? ",\"cnt\":%u}" : ",\"cnt\":%ju}";
sbuf_printf(buf, fmtstr,
const char *fmtstr;
fmtstr = "nbkts=%hu, ";
fmtstr = "\"nbkts\":%hu,";
sbuf_printf(buf, fmtstr, nbkts);
fmtstr = (is32bit ? "oob=%u" : "oob=%ju");
fmtstr = (is32bit ? "\"oob\":%u,\"bkts\":[" :
sbuf_printf(buf, fmtstr, is32bit ? VSD_CONSTHIST_FIELDVAL(hist,
fmtstr = "\n\t\t\t\t";
fmtstr = "{";
sbuf_cat(buf, fmtstr);
fmtstr = "bkt[%hu].";
fmtstr = "\"bkt\":%hu,";
sbuf_printf(buf, fmtstr, i);
fmtstr = "{lb=";
fmtstr = "\"lb\":";
sbuf_cat(buf, fmtstr);
fmtstr = ",ub=";
fmtstr = ",\"ub\":";
sbuf_cat(buf, fmtstr);
fmtstr = is32bit ? ",cnt=%u}" : ",cnt=%ju}";
fmtstr = is32bit ? ",\"cnt\":%u}" : ",\"cnt\":%ju}";
sbuf_printf(buf, fmtstr, is32bit ?
const char *fmtstr;
fmtstr = "prev=";
fmtstr = "\"prev\":";
sbuf_cat(buf, fmtstr);
const char *fmtstr;
fmtstr = "\"tplname\":%s,\"tplhash\":%u,\"vois\":{";
fmtstr = "\"tplname\":\"%s\",\"tplhash\":%u,\"vois\":{";
sbuf_printf(buf, fmtstr, tpl_mb ? tpl_mb->tplname : "null",
fmtstr = ",\"name\":%s,\"flags\":%hu,"
fmtstr = ",\"name\":\"%s\",\"flags\":%hu,"
sbuf_printf(buf, fmtstr, tpl_mb ?