diff options
| author | Léo Lam <leo@leolam.fr> | 2020-10-22 22:07:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-22 22:07:53 +0200 |
| commit | 64f7a4448b3071a0419dc09125e2cdf73cb99b97 (patch) | |
| tree | 03038d72a1b89159c4e0138c75a61c8a75eeec22 /Source/Core/DiscIO/DiscExtractor.cpp | |
| parent | 98b7814139490fb0267a7e5dd846f0e5cabcc79c (diff) | |
| parent | e93fbb7c5e66ff4590ce1d693cc66e7a9868a35c (diff) | |
Merge pull request #9178 from lioncash/disclog
DiscIO: Migrate logging over to fmt
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DiscExtractor.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index c9b01759a1..a68093aca9 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -5,7 +5,6 @@ #include "DiscIO/DiscExtractor.h" #include <algorithm> -#include <cinttypes> #include <locale> #include <optional> @@ -58,11 +57,9 @@ u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* f const u64 read_length = std::min(max_buffer_size, file_info->GetSize() - offset_in_file); - DEBUG_LOG(DISCIO, - "Reading %" PRIx64 " bytes at %" PRIx64 " from file %s. Offset: %" PRIx64 - " Size: %" PRIx32, - read_length, offset_in_file, file_info->GetPath().c_str(), file_info->GetOffset(), - file_info->GetSize()); + DEBUG_LOG_FMT(DISCIO, "Reading {:x} bytes at {:x} from file {}. Offset: {:x} Size: {:x}", + read_length, offset_in_file, file_info->GetPath(), file_info->GetOffset(), + file_info->GetSize()); if (!volume.Read(file_info->GetOffset() + offset_in_file, read_length, buffer, partition)) return 0; @@ -144,14 +141,14 @@ void ExportDirectory(const Volume& volume, const Partition& partition, const Fil if (update_progress(path)) return; - DEBUG_LOG(DISCIO, "%s", export_path.c_str()); + DEBUG_LOG_FMT(DISCIO, "{}", export_path); if (!file_info.IsDirectory()) { if (File::Exists(export_path)) - NOTICE_LOG(DISCIO, "%s already exists", export_path.c_str()); + NOTICE_LOG_FMT(DISCIO, "{} already exists", export_path); else if (!ExportFile(volume, partition, &file_info, export_path)) - ERROR_LOG(DISCIO, "Could not export %s", export_path.c_str()); + ERROR_LOG_FMT(DISCIO, "Could not export {}", export_path); } else if (recursive) { |
