Misc: More format string fixes

This commit is contained in:
Stenzek
2024-05-25 15:45:17 +10:00
parent a75e61e1d6
commit 1565a2667d
17 changed files with 33 additions and 32 deletions

View File

@ -1010,7 +1010,7 @@ GameList::PlayedTimeMap GameList::LoadPlayedTimeMap(const std::string& path)
if (ret.find(serial) != ret.end())
{
WARNING_LOG("Duplicate entry: '%s'", serial);
WARNING_LOG("Duplicate entry: '{}'", serial);
continue;
}
@ -1074,7 +1074,7 @@ GameList::PlayedTimeEntry GameList::UpdatePlayedTimeFile(const std::string& path
if (FileSystem::FSeek64(fp.get(), line_pos, SEEK_SET) != 0 ||
std::fwrite(new_line.data(), new_line.length(), 1, fp.get()) != 1)
{
ERROR_LOG("Failed to update '%s'.", path);
ERROR_LOG("Failed to update '{}'.", path);
}
return line_entry;
@ -1087,7 +1087,7 @@ GameList::PlayedTimeEntry GameList::UpdatePlayedTimeFile(const std::string& path
if (FileSystem::FSeek64(fp.get(), 0, SEEK_END) != 0 ||
std::fwrite(new_line.data(), new_line.length(), 1, fp.get()) != 1)
{
ERROR_LOG("Failed to write '%s'.", path);
ERROR_LOG("Failed to write '{}'.", path);
}
}