From a515df01db4f566bab4233f1a18eaaaf320c799c Mon Sep 17 00:00:00 2001 From: SachinVin <26602104+SachinVin@users.noreply.github.com> Date: Sun, 12 Dec 2021 20:22:50 +0530 Subject: [PATCH] savestate.cpp: log the savestate revision on revision mismatch (#5894) --- src/core/savestate.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/savestate.cpp b/src/core/savestate.cpp index 26fc0cbed..e470257f2 100644 --- a/src/core/savestate.cpp +++ b/src/core/savestate.cpp @@ -76,11 +76,12 @@ std::vector ListSaveStates(u64 program_id) { LOG_WARNING(Core, "Save state file isn't for the current game {}", path); continue; } - std::string revision = fmt::format("{:02x}", fmt::join(header.revision, "")); + const std::string revision = fmt::format("{:02x}", fmt::join(header.revision, "")); if (revision == Common::g_scm_rev) { info.status = SaveStateInfo::ValidationStatus::OK; } else { - LOG_WARNING(Core, "Save state file created from a different revision {}", path); + LOG_WARNING(Core, "Save state file {} created from a different revision {}", path, + revision); info.status = SaveStateInfo::ValidationStatus::RevisionDismatch; } result.emplace_back(std::move(info));