This commit is contained in:
Gavin Andresen 2011-03-13 17:15:57 -04:00
commit d43fd8a038

View File

@ -170,8 +170,9 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
} }
if (fileout) if (fileout)
{ {
//// Debug print useful for profiling // Debug print useful for profiling
//fprintf(fileout, " %"PRI64d" ", GetTimeMillis()); if (GetBoolArg("-logtimestamps"))
fprintf(fileout, "%s ", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
va_list arg_ptr; va_list arg_ptr;
va_start(arg_ptr, pszFormat); va_start(arg_ptr, pszFormat);
ret = vfprintf(fileout, pszFormat, arg_ptr); ret = vfprintf(fileout, pszFormat, arg_ptr);