Skip to content

Commit

Permalink
Merge pull request #3312 from neobrain/fix_format_strings
Browse files Browse the repository at this point in the history
FEXLoader: Fix incorrect format strings
  • Loading branch information
Sonicadvance1 authored Dec 6, 2023
2 parents 86c6ca3 + aaef83b commit 3a5ac39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Tools/FEXLoader/FEXLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Source/Tools/FEXLoader/LinuxSyscalls/x64/Syscalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/Tools/FEXLoader/TestHarnessRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 3a5ac39

Please sign in to comment.