From d82821fd62b2025af2bdb6ff74051d8e8eb811c4 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Sun, 19 Mar 2023 03:03:40 +0300 Subject: [PATCH] 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. --- src/driver-sinowealth.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 5cb0417f..21df27e8 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -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; }