winebus.sys: Add more traces on hidraw communication errors.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4b3b27a7f1
commit
9267973835
|
@ -765,7 +765,7 @@ static DWORD CALLBACK device_report_thread(void *args)
|
||||||
break;
|
break;
|
||||||
size = read(plfds[0].fd, report_buffer, sizeof(report_buffer));
|
size = read(plfds[0].fd, report_buffer, sizeof(report_buffer));
|
||||||
if (size == -1)
|
if (size == -1)
|
||||||
TRACE_(hid_report)("Read failed. Likely an unplugged device\n");
|
TRACE_(hid_report)("Read failed. Likely an unplugged device %d %s\n", errno, strerror(errno));
|
||||||
else if (size == 0)
|
else if (size == 0)
|
||||||
TRACE_(hid_report)("Failed to read report\n");
|
TRACE_(hid_report)("Failed to read report\n");
|
||||||
else
|
else
|
||||||
|
@ -827,6 +827,7 @@ static NTSTATUS hidraw_set_output_report(DEVICE_OBJECT *device, UCHAR id, BYTE *
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
TRACE("write failed: %d %d %s\n", rc, errno, strerror(errno));
|
||||||
*written = 0;
|
*written = 0;
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
@ -847,6 +848,7 @@ static NTSTATUS hidraw_get_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
TRACE_(hid_report)("ioctl(HIDIOCGFEATURE(%d)) failed: %d %s\n", length, errno, strerror(errno));
|
||||||
*read = 0;
|
*read = 0;
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
@ -887,6 +889,7 @@ static NTSTATUS hidraw_set_feature_report(DEVICE_OBJECT *device, UCHAR id, BYTE
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
TRACE_(hid_report)("ioctl(HIDIOCSFEATURE(%d)) failed: %d %s\n", length, errno, strerror(errno));
|
||||||
*written = 0;
|
*written = 0;
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue