X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/03b35a9a1bd1f583e32b27d260b223a0989d6c75..869c0cc91d8f6b2bb80026616372d16450b64d9f:/threaded_log.cc diff --git a/threaded_log.cc b/threaded_log.cc index 98cc6f6..0160f33 100644 --- a/threaded_log.cc +++ b/threaded_log.cc @@ -1,4 +1,5 @@ #include "threaded_log.h" +#include "t4.h" static std::mutex log_mutex; static std::map thread_name_map; @@ -17,7 +18,7 @@ locked_ostream && _log_prefix(locked_ostream && f, const string & file, const st auto utime = duration_cast( system_clock::now().time_since_epoch()).count() % 1000000000; f << std::setfill('0') << std::dec << std::left << std::setw(9) << utime << " "; - f << std::setfill(' ') << log_thread_prefix << std::left << std::setw(2) << tid; + f << std::setfill(' ') << global->log_thread_prefix << std::left << std::setw(2) << tid; f << " " << std::setw(20) << file << " " << std::setw(18) << func; return std::move(f); }