diff options
| author | 2018-02-14 00:57:06 -0500 | |
|---|---|---|
| committer | 2018-02-14 01:52:55 -0500 | |
| commit | e6bf72877fb2906b484716ff22e39db0a2db34e7 (patch) | |
| tree | ec499ff6bc270fe029207373c54239c6ca60730d /src/core/loader/nso.cpp | |
| parent | deconstructed_rom_directory: Silence formatting specifier warnings (diff) | |
| download | yuzu-e6bf72877fb2906b484716ff22e39db0a2db34e7.tar.gz yuzu-e6bf72877fb2906b484716ff22e39db0a2db34e7.tar.xz yuzu-e6bf72877fb2906b484716ff22e39db0a2db34e7.zip | |
nso: Silence formatting specifier warnings
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 3ccbbb824..407025da0 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <cinttypes> | ||
| 5 | #include <vector> | 6 | #include <vector> |
| 6 | #include <lz4.h> | 7 | #include <lz4.h> |
| 7 | #include "common/common_funcs.h" | 8 | #include "common/common_funcs.h" |
| @@ -82,7 +83,7 @@ static std::vector<u8> ReadSegment(FileUtil::IOFile& file, const NsoSegmentHeade | |||
| 82 | reinterpret_cast<char*>(uncompressed_data.data()), compressed_size, header.size); | 83 | reinterpret_cast<char*>(uncompressed_data.data()), compressed_size, header.size); |
| 83 | 84 | ||
| 84 | ASSERT_MSG(bytes_uncompressed == header.size && bytes_uncompressed == uncompressed_data.size(), | 85 | ASSERT_MSG(bytes_uncompressed == header.size && bytes_uncompressed == uncompressed_data.size(), |
| 85 | "%d != %d != %d", bytes_uncompressed, header.size, uncompressed_data.size()); | 86 | "%d != %u != %zu", bytes_uncompressed, header.size, uncompressed_data.size()); |
| 86 | 87 | ||
| 87 | return uncompressed_data; | 88 | return uncompressed_data; |
| 88 | } | 89 | } |
| @@ -158,7 +159,8 @@ ResultStatus AppLoader_NSO::Load(Kernel::SharedPtr<Kernel::Process>& process) { | |||
| 158 | 159 | ||
| 159 | // Load module | 160 | // Load module |
| 160 | LoadModule(filepath, Memory::PROCESS_IMAGE_VADDR); | 161 | LoadModule(filepath, Memory::PROCESS_IMAGE_VADDR); |
| 161 | LOG_DEBUG(Loader, "loaded module %s @ 0x%llx", filepath.c_str(), Memory::PROCESS_IMAGE_VADDR); | 162 | LOG_DEBUG(Loader, "loaded module %s @ 0x%" PRIx64, filepath.c_str(), |
| 163 | Memory::PROCESS_IMAGE_VADDR); | ||
| 162 | 164 | ||
| 163 | process->svc_access_mask.set(); | 165 | process->svc_access_mask.set(); |
| 164 | process->address_mappings = default_address_mappings; | 166 | process->address_mappings = default_address_mappings; |