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/VolumeGC.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/VolumeGC.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index 3489965395..e8bab67771 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -2,7 +2,8 @@ // Licensed under GPLv2+ // Refer to the license.txt file included. -#include <cinttypes> +#include "DiscIO/VolumeGC.h" + #include <cstddef> #include <map> #include <memory> @@ -26,7 +27,6 @@ #include "DiscIO/FileSystemGCWii.h" #include "DiscIO/Filesystem.h" #include "DiscIO/Volume.h" -#include "DiscIO/VolumeGC.h" namespace DiscIO { @@ -159,7 +159,7 @@ VolumeGC::ConvertedGCBanner VolumeGC::LoadBannerFile() const reinterpret_cast<u8*>(&banner_file), sizeof(GCBanner)); if (file_size < 4) { - WARN_LOG(DISCIO, "Could not read opening.bnr."); + WARN_LOG_FMT(DISCIO, "Could not read opening.bnr."); return {}; // Return early so that we don't access the uninitialized banner_file.id } @@ -176,7 +176,8 @@ VolumeGC::ConvertedGCBanner VolumeGC::LoadBannerFile() const } else { - WARN_LOG(DISCIO, "Invalid opening.bnr. Type: %0x Size: %0" PRIx64, banner_file.id, file_size); + WARN_LOG_FMT(DISCIO, "Invalid opening.bnr. Type: {:#0x} Size: {:#0x}", banner_file.id, + file_size); return {}; } |
