This allows the system to use whatever buffers it wants for the string
rather than assuming we need to malloc() it.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Nov 2 00:18:43 UTC 2010 on sn-devel-104
_PUBLIC_ void dbgtext(const char *format, ...)
{
va_list ap;
- char *s = NULL;
if (!check_reopen_logs()) return;
va_start(ap, format);
- vasprintf(&s, format, ap);
+ vdprintf(state.fd, format, ap);
va_end(ap);
-
- write(state.fd, s, strlen(s));
- free(s);
}
_PUBLIC_ const char *logfile = NULL;