From 17d5f8985d4a4250754d72a3b2a7d84958941cc8 Mon Sep 17 00:00:00 2001 From: Florin9doi <2995486+Florin9doi@users.noreply.github.com> Date: Sat, 26 Dec 2020 13:43:03 +0200 Subject: [PATCH] USB: Improve some cryptic warnings. (#4046) --- pcsx2/USB/usb-hid/evdev/evdev.cpp | 2 +- pcsx2/USB/usb-pad/evdev/evdev.cpp | 4 ++-- pcsx2/USB/usb-pad/joydev/joydev.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcsx2/USB/usb-hid/evdev/evdev.cpp b/pcsx2/USB/usb-hid/evdev/evdev.cpp index 8cb5c4bb4b..2117fe0aff 100644 --- a/pcsx2/USB/usb-hid/evdev/evdev.cpp +++ b/pcsx2/USB/usb-hid/evdev/evdev.cpp @@ -62,7 +62,7 @@ namespace usb_hid if (fd < 0) { - Console.Warning("Unable to open device"); + Console.Warning("Evdev: Unable to open device: %s", str.str().c_str()); continue; } diff --git a/pcsx2/USB/usb-pad/evdev/evdev.cpp b/pcsx2/USB/usb-pad/evdev/evdev.cpp index ebeb9b44bc..2b46f7b5ee 100644 --- a/pcsx2/USB/usb-pad/evdev/evdev.cpp +++ b/pcsx2/USB/usb-pad/evdev/evdev.cpp @@ -73,7 +73,7 @@ namespace usb_pad if (fd < 0) { - Console.Warning("Unable to open device"); + Console.Warning("Evdev: Unable to open device: %s", path.c_str()); continue; } @@ -164,7 +164,7 @@ namespace usb_pad if (fd < 0) { - Console.Warning("Unable to open device"); + Console.Warning("Evdev: Unable to open device: %s", path.c_str()); continue; } diff --git a/pcsx2/USB/usb-pad/joydev/joydev.cpp b/pcsx2/USB/usb-pad/joydev/joydev.cpp index a02e5f71a7..3e3a9adc01 100644 --- a/pcsx2/USB/usb-pad/joydev/joydev.cpp +++ b/pcsx2/USB/usb-pad/joydev/joydev.cpp @@ -58,7 +58,7 @@ namespace usb_pad if (fd < 0) { - Console.Warning("Unable to open device"); + Console.Warning("Joydev: Unable to open device: %s", path.c_str()); continue; }