Merge pull request #3312 from neobrain/fix_format_strings

FEXLoader: Fix incorrect format strings
This commit is contained in:
Ryan Houdek authored and GitHub committed 2023-12-05 23:51:00 -08:00
commit 3a5ac39bb1
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -461,7 +461,7 @@ int main(int argc, char **argv, char **const envp) {
if (!Loader.MapMemory(SyscallHandler.get())) {
// failed to map
LogMan::Msg::EFmt("Failed to map %d-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
LogMan::Msg::EFmt("Failed to map {}-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
return -ENOEXEC;
}
}
@@ -108,7 +108,7 @@ namespace FEX::HLE::x64 {
#if PRINT_MISSING_SYSCALLS
for (auto &Syscall: SyscallNames) {
if (Definitions[Syscall.first].Ptr == cvt(&UnimplementedSyscall)) {
LogMan::Msg::DFmt("Unimplemented syscall: %s", Syscall.second);
LogMan::Msg::DFmt("Unimplemented syscall: {}", Syscall.second);
}
}
#endif
+2 -2
View File
@@ -294,7 +294,7 @@ int main(int argc, char **argv, char **const envp) {
// Run through FEX
if (!Loader.MapMemory()) {
// failed to map
LogMan::Msg::EFmt("Failed to map %d-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
LogMan::Msg::EFmt("Failed to map {}-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
return -ENOEXEC;
}
@@ -324,7 +324,7 @@ int main(int argc, char **argv, char **const envp) {
SignalDelegation->RegisterTLSState((FEXCore::Core::InternalThreadState*)UINTPTR_MAX);
if (!Loader.MapMemory()) {
// failed to map
LogMan::Msg::EFmt("Failed to map %d-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
LogMan::Msg::EFmt("Failed to map {}-bit elf file.", Loader.Is64BitMode() ? 64 : 32);
return -ENOEXEC;
}