From 558de04cfc1983f587984168fb34aa3767a6f709 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 10 Nov 2021 18:34:28 -0800 Subject: 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. --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp') 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); -- cgit v1.2.3