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);

View File

@@ -527,7 +527,7 @@ char *api_netpath;
if(!check_intercept_enabled_for_thread()) {
return realclose(fd);
}
zt_close(fd);
return zt_close(fd);
}
// ------------------------------------------------------------------------------
@@ -550,7 +550,6 @@ char *api_netpath;
return zt_getsockname(sockfd, addr, addrlen);
}
// ------------------------------------------------------------------------------
// ------------------------------------ syscall() -------------------------------
// ------------------------------------------------------------------------------