From 139d4fc76e4ddf45179ca5ec5e42c52ef513ea4d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 2 Dec 2020 13:17:27 -0500 Subject: General: Convert PanicAlerts over to fmt equivalent Converts lingering panic alert calls over to the fmt-capable ones. --- Source/Core/Common/MemArena.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/MemArena.cpp') 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(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); -- cgit v1.2.3