summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/NANDImporter.cpp
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2017-05-02 18:43:28 -0400
committerGitHub <noreply@github.com>2017-05-02 18:43:28 -0400
commitd66e0e38d341640d108fae0d39dfcd5d0f17416f (patch)
treeaa69119447c85653eb097714e0ff81c1d6d667aa /Source/Core/DiscIO/NANDImporter.cpp
parentb21174c32656e5529709b3c7b793b385056f6ec8 (diff)
parentf04747e9101af64fad87be50a711ea1a9a746b4d (diff)
Merge pull request #5359 from ligfx/nandimporterwarning
NANDImporter: fix printf warning
Diffstat (limited to 'Source/Core/DiscIO/NANDImporter.cpp')
-rw-r--r--Source/Core/DiscIO/NANDImporter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/NANDImporter.cpp b/Source/Core/DiscIO/NANDImporter.cpp
index 4cdec9d081..7b523dbca9 100644
--- a/Source/Core/DiscIO/NANDImporter.cpp
+++ b/Source/Core/DiscIO/NANDImporter.cpp
@@ -5,6 +5,7 @@
#include "DiscIO/NANDImporter.h"
#include <array>
+#include <cinttypes>
#include <cstring>
#include "Common/Crypto/AES.h"
@@ -51,7 +52,8 @@ bool NANDImporter::ReadNANDBin(const std::string& path_to_bin)
File::IOFile file(path_to_bin, "rb");
if (file.GetSize() != NAND_BIN_SIZE)
{
- PanicAlertT("This file does not look like a BootMii NAND backup. (0x%lx does not equal 0x%zx)",
+ PanicAlertT("This file does not look like a BootMii NAND backup. (0x%" PRIx64
+ " does not equal 0x%zx)",
file.GetSize(), NAND_BIN_SIZE);
return false;
}