mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
usbutils - add USBDEBUG for usb_bulk_transfer
This commit is contained in:
parent
8fbd8a4744
commit
a62267fa93
@ -2253,6 +2253,8 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle,
|
|||||||
if (endpoint == LIBUSB_ENDPOINT_OUT)
|
if (endpoint == LIBUSB_ENDPOINT_OUT)
|
||||||
memcpy(buf, data, length);
|
memcpy(buf, data, length);
|
||||||
|
|
||||||
|
USBDEBUG("USB debug: @usb_bulk_transfer(%s (nodev=%s),endpoint=%d,data=%p,length=%d,timeout=%u,mode=%d,cmd=%s,seq=%d)", cgpu->drv->name, bool_str(cgpu->usbinfo.nodev), (int)endpoint, data, length, timeout, mode, usb_cmdname(cmd), seq);
|
||||||
|
|
||||||
STATS_TIMEVAL(&tv_start);
|
STATS_TIMEVAL(&tv_start);
|
||||||
cg_rlock(&cgusb_fd_lock);
|
cg_rlock(&cgusb_fd_lock);
|
||||||
err = libusb_bulk_transfer(dev_handle, endpoint, data, length,
|
err = libusb_bulk_transfer(dev_handle, endpoint, data, length,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user