From: Bastien Nocera Date: Sun, 25 Jan 2026 12:12:01 +0000 (+0100) Subject: HID: logitech-dj: Differentiate "invalid device index" error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c6a83fc2f3061108828fbd2c59bdd89d9dd54e7;p=thirdparty%2Fkernel%2Flinux.git HID: logitech-dj: Differentiate "invalid device index" error We had 2 codepaths throwing the "invalid device index" error, but one of them was about the index not matching the receiver, so change the error to "invalid receiver index". Signed-off-by: Bastien Nocera Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hid-logitech-dj.c b/drivers/hid/hid-logitech-dj.c index 44b7166975104..e728f00f5bdc5 100644 --- a/drivers/hid/hid-logitech-dj.c +++ b/drivers/hid/hid-logitech-dj.c @@ -1664,7 +1664,7 @@ static int logi_dj_dj_event(struct hid_device *hdev, * so ignore those reports too. */ if (dj_report->device_index != DJ_RECEIVER_INDEX) - hid_err(hdev, "%s: invalid device index:%d\n", + hid_err(hdev, "%s: invalid receiver index:%d\n", __func__, dj_report->device_index); return false; }