22 #include "config_auto.h"
32 #define MAX_MSG_LEN 65536
40 const char *format, ...
44 static FILE *debugfp =
NULL;
49 va_start(args, format);
52 offset += _vsnprintf(msg + offset,
MAX_MSG_LEN - offset, format, args);
53 if (strcmp(
debug_file.string(),
"/dev/null") == 0)
56 offset += vsnprintf(msg + offset,
MAX_MSG_LEN - offset, format, args);
67 fprintf(debugfp,
"%s", msg);
69 fprintf(stderr,
"%s", msg);
DLLSYM void tprintf_internal(const char *format,...)
#define STRING_VAR(name, val, comment)