diff options
| author | 2018-10-16 11:26:54 -0400 | |
|---|---|---|
| committer | 2018-10-16 11:26:54 -0400 | |
| commit | 78f2a6a9e1d3a226a3afcec2b651cf61391921ae (patch) | |
| tree | c16e94ee9f21b2c88ad0a63942416688c2ef7dd5 /src | |
| parent | Implement VI ConvertScalingMode (#1475) (diff) | |
| parent | patch_manager: Move non-Program RomFS patch log to Debug (diff) | |
| download | yuzu-78f2a6a9e1d3a226a3afcec2b651cf61391921ae.tar.gz yuzu-78f2a6a9e1d3a226a3afcec2b651cf61391921ae.tar.xz yuzu-78f2a6a9e1d3a226a3afcec2b651cf61391921ae.zip | |
Merge pull request #1443 from DarkLordZach/lower-loader-logs-1
content_archive/patch_manager: Lower log levels to eliminate some unnecessary logs
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/file_sys/content_archive.cpp | 2 | ||||
| -rw-r--r-- | src/core/file_sys/patch_manager.cpp | 10 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp index aa1b3c17d..6dcec7816 100644 --- a/src/core/file_sys/content_archive.cpp +++ b/src/core/file_sys/content_archive.cpp | |||
| @@ -133,7 +133,7 @@ boost::optional<Core::Crypto::Key128> NCA::GetKeyAreaKey(NCASectionCryptoType ty | |||
| 133 | static_cast<u8>(type)); | 133 | static_cast<u8>(type)); |
| 134 | u128 out_128{}; | 134 | u128 out_128{}; |
| 135 | memcpy(out_128.data(), out.data(), 16); | 135 | memcpy(out_128.data(), out.data(), 16); |
| 136 | LOG_DEBUG(Crypto, "called with crypto_rev={:02X}, kak_index={:02X}, key={:016X}{:016X}", | 136 | LOG_TRACE(Crypto, "called with crypto_rev={:02X}, kak_index={:02X}, key={:016X}{:016X}", |
| 137 | master_key_id, header.key_index, out_128[1], out_128[0]); | 137 | master_key_id, header.key_index, out_128[1], out_128[0]); |
| 138 | 138 | ||
| 139 | return out; | 139 | return out; |
diff --git a/src/core/file_sys/patch_manager.cpp b/src/core/file_sys/patch_manager.cpp index c15ac8e19..0117cb0bf 100644 --- a/src/core/file_sys/patch_manager.cpp +++ b/src/core/file_sys/patch_manager.cpp | |||
| @@ -214,8 +214,14 @@ static void ApplyLayeredFS(VirtualFile& romfs, u64 title_id, ContentRecordType t | |||
| 214 | 214 | ||
| 215 | VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, ContentRecordType type, | 215 | VirtualFile PatchManager::PatchRomFS(VirtualFile romfs, u64 ivfc_offset, ContentRecordType type, |
| 216 | VirtualFile update_raw) const { | 216 | VirtualFile update_raw) const { |
| 217 | LOG_INFO(Loader, "Patching RomFS for title_id={:016X}, type={:02X}", title_id, | 217 | const auto log_string = fmt::format("Patching RomFS for title_id={:016X}, type={:02X}", |
| 218 | static_cast<u8>(type)); | 218 | title_id, static_cast<u8>(type)) |
| 219 | .c_str(); | ||
| 220 | |||
| 221 | if (type == ContentRecordType::Program) | ||
| 222 | LOG_INFO(Loader, log_string); | ||
| 223 | else | ||
| 224 | LOG_DEBUG(Loader, log_string); | ||
| 219 | 225 | ||
| 220 | if (romfs == nullptr) | 226 | if (romfs == nullptr) |
| 221 | return romfs; | 227 | return romfs; |