1
0
forked from drath/libratbag

hidpp10: use log_debug for HID++ errors

HID++ 1.0  doesn't have an index of functions available, so we pretty much
have to bang every request against the device, full of hope and optimism.
Reality demands that some of them fail and we handle that, but we don't need
to worry the user by screaming errors.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2015-08-26 09:57:43 +10:00
parent 008ab6a9d7
commit d444e2e1e8

View File

@@ -148,7 +148,7 @@ hidpp10_request_command(struct hidpp10_device *dev, union hidpp10_message *msg)
if (!memcmp(read_buffer.data, expected_error_recv.data, 5) ||
!memcmp(read_buffer.data, expected_error_dev.data, 5)) {
hidpp_err = read_buffer.msg.parameters[1];
log_error(ratbag,
log_debug(ratbag,
" HID++ error from the %s (%d): %s (%02x)\n",
read_buffer.msg.device_idx == RECEIVER_IDX ? "receiver" : "device",
read_buffer.msg.device_idx,