input: merge some duplicate code

This commit is contained in:
Megamouse 2023-06-12 01:05:31 +02:00
parent 2409a0d04e
commit 1bd9549e45
2 changed files with 10 additions and 115 deletions

View file

@ -198,7 +198,7 @@ void hid_pad_handler<Device>::update_devices()
}
else
{
hid_log.warning("%s adding device: vid=N/A, pid=N/A, path='%s'", m_type, path);
hid_log.warning("%s adding device: vid=N/A, pid=N/A, path='%s', error='%s'", m_type, path, hid_error(dev));
}
check_add_device(dev, path, m_enumerated_serials[path]);