diff options
| author | Léo Lam <leo@leolam.fr> | 2020-12-02 20:45:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-02 20:45:27 +0100 |
| commit | b148b56fba41e2beb81c61e4d84bbecad0f33a53 (patch) | |
| tree | 9588abb91d50ca660e9f832eb8d751be73a8413d /Source/Core/Common/MemArena.cpp | |
| parent | 00f2e0e494f644d0a559dc92f9eb94be0fab6913 (diff) | |
| parent | 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d (diff) | |
Merge pull request #9304 from lioncash/panic
General: Convert PanicAlerts over to fmt equivalent
Diffstat (limited to 'Source/Core/Common/MemArena.cpp')
| -rw-r--r-- | Source/Core/Common/MemArena.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/MemArena.cpp b/Source/Core/Common/MemArena.cpp index 48f9b678e7..f27c4ccaf6 100644 --- a/Source/Core/Common/MemArena.cpp +++ b/Source/Core/Common/MemArena.cpp @@ -145,7 +145,7 @@ u8* MemArena::FindMemoryBase() u8* base = static_cast<u8*>(VirtualAlloc(nullptr, memory_size, MEM_RESERVE, PAGE_READWRITE)); if (!base) { - PanicAlert("Failed to map enough memory space: %s", GetLastErrorString().c_str()); + PanicAlertFmt("Failed to map enough memory space: {}", GetLastErrorString()); return nullptr; } VirtualFree(base, 0, MEM_RELEASE); @@ -162,7 +162,7 @@ u8* MemArena::FindMemoryBase() void* base = mmap(nullptr, memory_size, PROT_NONE, flags, -1, 0); if (base == MAP_FAILED) { - PanicAlert("Failed to map enough memory space: %s", LastStrerrorString().c_str()); + PanicAlertFmt("Failed to map enough memory space: {}", LastStrerrorString()); return nullptr; } munmap(base, memory_size); |
