Merge pull request #858 from lioncash/cast

partition_filesystem: Remove dynamic_cast in PrintDebugInfo()
This commit is contained in:
bunnei 2018-07-30 10:09:36 -07:00 committed by GitHub
commit 45d1438530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,9 +97,8 @@ void PartitionFilesystem::PrintDebugInfo() const {
LOG_DEBUG(Service_FS, "Magic: {:.4}", pfs_header.magic); LOG_DEBUG(Service_FS, "Magic: {:.4}", pfs_header.magic);
LOG_DEBUG(Service_FS, "Files: {}", pfs_header.num_entries); LOG_DEBUG(Service_FS, "Files: {}", pfs_header.num_entries);
for (u32 i = 0; i < pfs_header.num_entries; i++) { for (u32 i = 0; i < pfs_header.num_entries; i++) {
LOG_DEBUG(Service_FS, " > File {}: {} (0x{:X} bytes, at 0x{:X})", i, LOG_DEBUG(Service_FS, " > File {}: {} (0x{:X} bytes)", i,
pfs_files[i]->GetName(), pfs_files[i]->GetSize(), pfs_files[i]->GetName(), pfs_files[i]->GetSize());
dynamic_cast<OffsetVfsFile*>(pfs_files[i].get())->GetOffset());
} }
} }