From 4d9a7c7a54b6007c9d468d80f70761afef873f47 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 9 Nov 2020 03:03:23 -0500 Subject: D3DCommon: Migrate logging over to fmt Migrates the logging over to the fmt-capable logger. --- Source/Core/VideoBackends/D3DCommon/SwapChain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoBackends/D3DCommon/SwapChain.cpp') diff --git a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp index e0bca9158b..ff344a993d 100644 --- a/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp +++ b/Source/Core/VideoBackends/D3DCommon/SwapChain.cpp @@ -134,7 +134,7 @@ bool SwapChain::CreateSwapChain(bool stereo) hr = m_dxgi_factory->MakeWindowAssociation(static_cast(m_wsi.render_surface), DXGI_MWA_NO_WINDOW_CHANGES | DXGI_MWA_NO_ALT_ENTER); if (FAILED(hr)) - WARN_LOG(VIDEO, "MakeWindowAssociation() failed with HRESULT %08X", hr); + WARN_LOG_FMT(VIDEO, "MakeWindowAssociation() failed with HRESULT {:08X}", hr); m_stereo = stereo; if (!CreateSwapChainBuffers()) @@ -167,7 +167,7 @@ bool SwapChain::ResizeSwapChain() GetDXGIFormatForAbstractFormat(m_texture_format, false), GetSwapChainFlags()); if (FAILED(hr)) - WARN_LOG(VIDEO, "ResizeBuffers() failed with HRESULT %08X", hr); + WARN_LOG_FMT(VIDEO, "ResizeBuffers() failed with HRESULT {:08X}", hr); DXGI_SWAP_CHAIN_DESC desc; if (SUCCEEDED(m_swap_chain->GetDesc(&desc))) @@ -237,7 +237,7 @@ bool SwapChain::Present() HRESULT hr = m_swap_chain->Present(static_cast(g_ActiveConfig.bVSyncActive), present_flags); if (FAILED(hr)) { - WARN_LOG(VIDEO, "Swap chain present failed with HRESULT %08X", hr); + WARN_LOG_FMT(VIDEO, "Swap chain present failed with HRESULT {:08X}", hr); return false; } -- cgit v1.2.3