Commit c29d60149a21e8899a42b8b1a7f7f878ab4c849d

Con Kolivas 2013-11-16T14:46:49

Add more information on libusb failure to init telling users to check README file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/usbutils.c b/usbutils.c
index 94fc019..29ed536 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -1590,6 +1590,7 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u
 					"USB init, open device failed, err %d, "
 					"you don't have privilege to access %s",
 					err, devstr);
+				applog(LOG_ERR, "See README file included for help");
 				break;
 #ifdef WIN32
 			// Windows specific message
@@ -1598,6 +1599,7 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u
 					"USB init, open device failed, err %d, "
 					"you need to install a WinUSB driver for %s",
 					err, devstr);
+				applog(LOG_ERR, "See README.txt file included for help");
 				break;
 #endif
 			default: