mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-02 15:25:14 +00:00
Add libusb error log
Log libusb_get_string_descriptor_ascii() errors. Refs #3050 <https://github.com/Genymobile/scrcpy/issues/3050>
This commit is contained in:
@@ -15,6 +15,7 @@ read_string(libusb_device_handle *handle, uint8_t desc_index) {
|
|||||||
(unsigned char *) buffer,
|
(unsigned char *) buffer,
|
||||||
sizeof(buffer));
|
sizeof(buffer));
|
||||||
if (result < 0) {
|
if (result < 0) {
|
||||||
|
LOGD("Read string: libusb error: %s", libusb_strerror(result));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user