summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-10-22 17:49:29 -0400
committerLioncash <mathew1800@gmail.com>2020-10-23 13:16:18 -0400
commita5e1415e74ce5b6b2a339256aa3e97748a3a2484 (patch)
treecb8455dae3bfbc283fe05e3b6f026cd79c9c7f16 /Source/Core/InputCommon/ControllerInterface/DInput
parent64f7a4448b3071a0419dc09125e2cdf73cb99b97 (diff)
InputCommon: Migrate logging over to fmt
Continues the migration of the logging calls over to the fmt capable ones.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp4
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp
index 2fc0e1b972..d508de613a 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInput.cpp
@@ -42,7 +42,7 @@ std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device)
}
else
{
- ERROR_LOG(PAD, "GetProperty(DIPROP_PRODUCTNAME) failed.");
+ ERROR_LOG_FMT(PAD, "GetProperty(DIPROP_PRODUCTNAME) failed.");
}
return result;
@@ -58,7 +58,7 @@ void PopulateDevices(HWND hwnd)
if (FAILED(DirectInput8Create(GetModuleHandle(nullptr), DIRECTINPUT_VERSION, IID_IDirectInput8,
(LPVOID*)&idi8, nullptr)))
{
- ERROR_LOG(PAD, "DirectInput8Create failed.");
+ ERROR_LOG_FMT(PAD, "DirectInput8Create failed.");
return;
}
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
index 633950cc2d..67fd33186b 100644
--- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
@@ -59,7 +59,7 @@ void InitJoystick(IDirectInput8* const idi8, HWND hwnd)
if (FAILED(js_device->SetCooperativeLevel(GetAncestor(hwnd, GA_ROOT),
DISCL_BACKGROUND | DISCL_EXCLUSIVE)))
{
- WARN_LOG(
+ WARN_LOG_FMT(
PAD,
"DInput: Failed to acquire device exclusively. Force feedback will be unavailable.");
// Fall back to non-exclusive mode, with no rumble
@@ -187,7 +187,7 @@ Joystick::~Joystick()
}
else
{
- ERROR_LOG(PAD, "DInputJoystick: GetDeviceInfo failed.");
+ ERROR_LOG_FMT(PAD, "DInputJoystick: GetDeviceInfo failed.");
}
DeInitForceFeedback();