diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-11-10 18:34:28 -0800 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2022-01-09 12:44:14 -0800 |
| commit | 558de04cfc1983f587984168fb34aa3767a6f709 (patch) | |
| tree | 3e09e20775d2860149f4eeaf753b0cd8e1bda29c /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | bab3ff0157065a62f6d16cba3953690a43529b05 (diff) | |
Common/Assert: Actually use the ASSERT_MSG's log type parameter
Since it was unused, nonexistent values were used in a few places. I've replaced them.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 43662edb8b..6df37b47df 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -296,7 +296,7 @@ static void HotplugThreadFunc() udev* const udev = udev_new(); Common::ScopeGuard udev_guard([udev] { udev_unref(udev); }); - ASSERT_MSG(PAD, udev != nullptr, "Couldn't initialize libudev."); + ASSERT_MSG(CONTROLLERINTERFACE, udev != nullptr, "Couldn't initialize libudev."); // Set up monitoring udev_monitor* const monitor = udev_monitor_new_from_netlink(udev, "udev"); @@ -366,7 +366,7 @@ static void StartHotplugThread() } s_wakeup_eventfd = eventfd(0, 0); - ASSERT_MSG(PAD, s_wakeup_eventfd != -1, "Couldn't create eventfd."); + ASSERT_MSG(CONTROLLERINTERFACE, s_wakeup_eventfd != -1, "Couldn't create eventfd."); s_hotplug_thread = std::thread(HotplugThreadFunc); } @@ -406,7 +406,7 @@ void PopulateDevices() // this ever changes, hopefully udev will take care of this. udev* const udev = udev_new(); - ASSERT_MSG(PAD, udev != nullptr, "Couldn't initialize libudev."); + ASSERT_MSG(CONTROLLERINTERFACE, udev != nullptr, "Couldn't initialize libudev."); // List all input devices udev_enumerate* const enumerate = udev_enumerate_new(udev); |
