diff options
| author | JosJuice <josjuice@gmail.com> | 2022-01-09 22:27:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-09 22:27:18 +0100 |
| commit | 3da64875314e2a1743b8d6453403ef85e8b45eb4 (patch) | |
| tree | e97af4fd1e5319cb74567f7c434d5084d9e1c4a5 /Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | |
| parent | 36d605715d4045d6a556b4234d1d925f79c5eea3 (diff) | |
| parent | ca9bf3174f4acd4c9d78ac7c21b6aeaa1430b7ef (diff) | |
Merge pull request #10209 from Pokechu22/assert-fmt
Assertion and panic alert improvements
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); |
