diff --git a/src/util.cpp b/src/util.cpp index a2940a0a3..a2de3bb7d 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -900,7 +900,7 @@ void ShrinkDebugFile() int maxlogsize = GetArg("-maxdebugfilesize", 15); unsigned int MAX_DEBUG_LOG_SIZE = maxlogsize*(1024*1024); // convert to MB if (file && boost::filesystem::file_size(pathLog) > MAX_DEBUG_LOG_SIZE ) { - fprintf(stderr,"Shrinking %s to be at most %d bytes\n", GetDataDir().c_str(), MAX_DEBUG_LOG_SIZE ); + fprintf(stderr,"Shrinking %s to be at most %d bytes\n", pathLog.string().c_str(), MAX_DEBUG_LOG_SIZE ); // Restart the file with some of the end std::vector vch(200000,0); fseek(file, -((long)vch.size()), SEEK_END);