printbuf
printbuf();
if ((n = strlcpy(newfmt, printbuf, sizeof(newfmt))) >= sizeof(newfmt))
if (vsnprintf(printbuf, sizeof(printbuf), newfmt, ap) < 0)
if (strlen(printbuf))
hostapd_log(HOSTAPD_LOG, "%s", printbuf);
bzero(printbuf, sizeof(printbuf));
char printbuf[BUFSIZ];