From 95797821b41b18410b9e365eaa360ef8199c53ac Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 3 Nov 2013 19:15:32 +1100 Subject: [PATCH] Add more debugging info for when usb details don't match. --- usbutils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usbutils.c b/usbutils.c index 2db5b5a4..1da81d7a 100644 --- a/usbutils.c +++ b/usbutils.c @@ -1587,6 +1587,7 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u if (strcmp((char *)man, found->iManufacturer)) { applog(LOG_DEBUG, "USB init, iManufacturer mismatch %s", devstr); + applog(LOG_DEBUG, "Found %s vs %s", man, found->iManufacturer); bad = USB_INIT_IGNORE; goto cldame; } @@ -1607,6 +1608,7 @@ static int _usb_init(struct cgpu_info *cgpu, struct libusb_device *dev, struct u if (strcmp((char *)prod, found->iProduct)) { applog(LOG_DEBUG, "USB init, iProduct mismatch %s", devstr); + applog(LOG_DEBUG, "Found %s vs %s", prod, found->iProduct); bad = USB_INIT_IGNORE; goto cldame; }