From 0065800f054013eef6f25ffbd14e7faf85789de5 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 21 Jan 2024 00:18:48 +1000 Subject: [PATCH] Qt: Fix a couple of error log formats --- src/duckstation-qt/qthost.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/duckstation-qt/qthost.cpp b/src/duckstation-qt/qthost.cpp index 37d1f0fd0..7f5f738ed 100644 --- a/src/duckstation-qt/qthost.cpp +++ b/src/duckstation-qt/qthost.cpp @@ -1632,7 +1632,7 @@ std::optional> Host::ReadResourceFile(std::string_view filename, const std::string path = QtHost::GetResourcePath(filename, allow_override); std::optional> ret(FileSystem::ReadBinaryFile(path.c_str())); if (!ret.has_value()) - Log_ErrorPrintf("Failed to read resource file '%s'", filename); + Log_ErrorFmt("Failed to read resource file '{}'", filename); return ret; } @@ -1641,7 +1641,7 @@ std::optional Host::ReadResourceFileToString(std::string_view filen const std::string path = QtHost::GetResourcePath(filename, allow_override); std::optional ret(FileSystem::ReadFileToString(path.c_str())); if (!ret.has_value()) - Log_ErrorPrintf("Failed to read resource file to string '%s'", filename); + Log_ErrorFmt("Failed to read resource file to string '{}'", filename); return ret; } @@ -1652,7 +1652,7 @@ std::optional Host::GetResourceFileTimestamp(std::string_view filen FILESYSTEM_STAT_DATA sd; if (!FileSystem::StatFile(path.c_str(), &sd)) { - Log_ErrorPrintf("Failed to stat resource file '%s'", filename); + Log_ErrorFmt("Failed to stat resource file '{}'", filename); return std::nullopt; }