retval = kprintf(fmt, TOBUFONLY, &p, buf, ap);
retval = kprintf(fmt, TOBUFONLY | TOCOUNT, &p, buf, ap);
snprintf(char *buf, size_t size, const char *fmt, ...){	int retval;	va_list ap;	char *p;	if (size < 1)		return (-1);	p = buf + size - 1;	va_start(ap, fmt);	retval = kprintf(fmt, TOBUFONLY, &p, buf, ap);	va_end(ap);	*(p) = 0;	/* null terminate */	return(retval);}