small debug changed

This commit is contained in:
Joseph Henry
2016-06-29 17:47:15 -07:00
parent 419c31e1a0
commit 3915ed031a
5 changed files with 19 additions and 32 deletions

View File

@@ -78,6 +78,7 @@ void dwr(int level, const char *fmt, ... )
}
if(debug_logfile) {
FILE *file = fopen(debug_logfile,"a");
fprintf(file, "%s [tid=%7d] ", timestring, tid);
vfprintf(file, fmt, ap);
fclose(file);
va_end(ap);