etekcity/roccat: fix error message when we can't talk to the mouse

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-03-16 09:59:05 +10:00
parent b1d99a744b
commit 5c68164d48
2 changed files with 4 additions and 4 deletions

View File

@@ -665,8 +665,8 @@ etekcity_probe(struct ratbag_device *device)
if (active_idx < 0) {
log_error(device->ratbag,
"Can't talk to the mouse: '%s' (%d)\n",
strerror(-rc),
rc);
strerror(-active_idx),
active_idx);
rc = -ENODEV;
goto err;
}

View File

@@ -803,8 +803,8 @@ roccat_probe(struct ratbag_device *device)
if (active_idx < 0) {
log_error(device->ratbag,
"Can't talk to the mouse: '%s' (%d)\n",
strerror(-rc),
rc);
strerror(-active_idx),
active_idx);
rc = -ENODEV;
goto err;
}