Commit 362687f6bc1217a65d945b7691d862e573a31047

Con Kolivas 2013-06-16T19:08:10

Pipe error is quite common on usb3 so drop logging to verbose level only.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/usbutils.c b/usbutils.c
index fd0c64b..62bd05e 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -2190,8 +2190,8 @@ usb_bulk_transfer(struct libusb_device_handle *dev_handle,
 				   transferred, timeout);
 	cg_runlock(&cgusb_fd_lock);
 
-	if (unlikely(err == LIBUSB_ERROR_PIPE)) {
-		applog(LOG_WARNING, "%s: libusb pipe error, trying to clear",
+	if (err == LIBUSB_ERROR_PIPE) {
+		applog(LOG_INFO, "%s: libusb pipe error, trying to clear",
 		       cgpu->drv->name);
 		do {
 			err = libusb_clear_halt(dev_handle, endpoint);