diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-12 21:33:01 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-06-13 15:25:31 +0200 |
commit | eb6cdadc4dad9de62abbd31c410050ae150935b1 (patch) | |
tree | 9abf6cf90bec474fcf226c15d6f85dbbbed04551 /src/newgrf_profiling.cpp | |
parent | d9c1d18f2bde32fe615fbe6ad088fbce1e2b82bf (diff) | |
download | openttd-eb6cdadc4dad9de62abbd31c410050ae150935b1.tar.xz |
Codechange: replace IConsolePrintF with IConsolePrint and fmt formatting
Also make some strings more consistent with the rest of the console strings.
Diffstat (limited to 'src/newgrf_profiling.cpp')
-rw-r--r-- | src/newgrf_profiling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_profiling.cpp b/src/newgrf_profiling.cpp index 27a1bc80e..c05489b9e 100644 --- a/src/newgrf_profiling.cpp +++ b/src/newgrf_profiling.cpp @@ -95,12 +95,12 @@ uint32 NewGRFProfiler::Finish() if (!this->active) return 0; if (this->calls.empty()) { - IConsolePrintF(CC_DEBUG, "Finished profile of NewGRF [%08X], no events collected, not writing a file", BSWAP32(this->grffile->grfid)); + IConsolePrint(CC_DEBUG, "Finished profile of NewGRF [{:08X}], no events collected, not writing a file.", BSWAP32(this->grffile->grfid)); return 0; } std::string filename = this->GetOutputFilename(); - IConsolePrintF(CC_DEBUG, "Finished profile of NewGRF [%08X], writing %u events to %s", BSWAP32(this->grffile->grfid), (uint)this->calls.size(), filename.c_str()); + IConsolePrint(CC_DEBUG, "Finished profile of NewGRF [{:08X}], writing {} events to '{}'.", BSWAP32(this->grffile->grfid), this->calls.size(), filename); FILE *f = FioFOpenFile(filename, "wt", Subdirectory::NO_DIRECTORY); FileCloser fcloser(f); @@ -151,7 +151,7 @@ uint32 NewGRFProfiler::FinishAll() } if (total_microseconds > 0 && max_ticks > 0) { - IConsolePrintF(CC_DEBUG, "Total NewGRF callback processing: %u microseconds over %d ticks", total_microseconds, max_ticks); + IConsolePrint(CC_DEBUG, "Total NewGRF callback processing: {} microseconds over {} ticks.", total_microseconds, max_ticks); } _newgrf_profile_end_date = MAX_DAY; |