MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vsnrprintf

Function vsnrprintf

freebsd/kern/subr_prf.c:574–586  ·  view source on GitHub ↗

* Kernel version which takes radix argument vsnprintf(3). */

Source from the content-addressed store, hash-verified

572 * Kernel version which takes radix argument vsnprintf(3).
573 */
574int
575vsnrprintf(char *str, size_t size, int radix, const char *format, va_list ap)
576{
577 struct snprintf_arg info;
578 int retval;
579
580 info.str = str;
581 info.remain = size;
582 retval = kvprintf(format, snprintf_func, &info, radix, ap);
583 if (info.remain >= 1)
584 *info.str++ = '\0';
585 return (retval);
586}
587
588static void
589snprintf_func(int ch, void *arg)

Callers 3

tty_makedevfFunction · 0.85
terminal_makettyFunction · 0.85
prep_devnameFunction · 0.85

Calls 1

kvprintfFunction · 0.70

Tested by

no test coverage detected