sinowealth: show a more detailed message for unknown mice

The string may be a bit too long, but I still think it's a good idea to
guide people in the right direction.
This commit is contained in:
Yaroslav Chvanov
2023-03-19 03:03:40 +03:00
parent dc9d49a240
commit d82821fd62

View File

@@ -1618,7 +1618,12 @@ sinowealth_init_profile(struct ratbag_device *device)
const struct sinowealth_device_data *device_data = sinowealth_find_device_data(device, fw_version);
if (device_data == NULL) {
log_error(device->ratbag, "Device with firmware version %s is not supported\n", fw_version);
log_info(device->ratbag,
"Device with firmware version `%s` is not supported; "
"Perhaps the device file is missing a section for this device?; "
"See the example device file in the repository for more details (`libratbag/data/devices/device.example`)\n",
fw_version
);
return -EINVAL;
}