From a62267fa9325afb134cf15fa868038004917998e Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 27 Sep 2013 09:44:58 +1000 Subject: [PATCH] usbutils - add USBDEBUG for usb_bulk_transfer --- usbutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usbutils.c b/usbutils.c index 2cd902fe..3f8fc40c 100644 --- a/usbutils.c +++ b/usbutils.c @@ -2253,6 +2253,8 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle, if (endpoint == LIBUSB_ENDPOINT_OUT) 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); cg_rlock(&cgusb_fd_lock); err = libusb_bulk_transfer(dev_handle, endpoint, data, length,