diff --git a/Source/Common/Sony9PinWrapper.cpp b/Source/Common/Sony9PinWrapper.cpp index b7874589..e2ac9fca 100644 --- a/Source/Common/Sony9PinWrapper.cpp +++ b/Source/Common/Sony9PinWrapper.cpp @@ -134,7 +134,11 @@ string Sony9PinWrapper::GetDeviceName(size_t DeviceIndex) if (DeviceIndex >= Devices.size()) return ""; - return Devices[DeviceIndex].port; + string name = Devices[DeviceIndex].port; + if (name.rfind("/dev/", 0) == 0) + name = name.substr(5); + + return Devices[DeviceIndex].port + (name.empty() ? "" : (": " + name)); } //---------------------------------------------------------------------------