NANDImporter: fix printf warning
gcc complains that the printf %x formatting instruction expects an 'unsigned int' but we pass a 'size_t'. We add the 'z' length formatting specifier used for 'size_t'
This commit is contained in:
parent
7af05fd9e6
commit
d8db6a7139
|
@ -93,7 +93,7 @@ void NANDImporter::FindSuperblock()
|
||||||
if (!memcmp(m_nand.data() + pos, "SFFS", 4))
|
if (!memcmp(m_nand.data() + pos, "SFFS", 4))
|
||||||
{
|
{
|
||||||
u32 version = Common::swap32(&m_nand[pos + 4]);
|
u32 version = Common::swap32(&m_nand[pos + 4]);
|
||||||
INFO_LOG(DISCIO, "Found superblock at 0x%x with version 0x%x", pos, version);
|
INFO_LOG(DISCIO, "Found superblock at 0x%zx with version 0x%x", pos, version);
|
||||||
if (superblock == 0 || version > newest_version)
|
if (superblock == 0 || version > newest_version)
|
||||||
{
|
{
|
||||||
superblock = pos;
|
superblock = pos;
|
||||||
|
@ -104,7 +104,7 @@ void NANDImporter::FindSuperblock()
|
||||||
|
|
||||||
m_nand_fat_offset = superblock + 0xC;
|
m_nand_fat_offset = superblock + 0xC;
|
||||||
m_nand_fst_offset = m_nand_fat_offset + 0x10000;
|
m_nand_fst_offset = m_nand_fat_offset + 0x10000;
|
||||||
INFO_LOG(DISCIO, "Using superblock version 0x%x at position 0x%x. FAT/FST offset: 0x%x/0x%x",
|
INFO_LOG(DISCIO, "Using superblock version 0x%x at position 0x%zx. FAT/FST offset: 0x%zx/0x%zx",
|
||||||
newest_version, superblock, m_nand_fat_offset, m_nand_fst_offset);
|
newest_version, superblock, m_nand_fat_offset, m_nand_fst_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue