From 685d0ef14d626a287aa3bf6464eb8c5027a8965b Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 20 May 2013 13:41:46 +1000 Subject: [PATCH] icarus report err on read failure --- driver-icarus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver-icarus.c b/driver-icarus.c index b11b66da..55153563 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -353,7 +353,8 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct err = usb_read_timeout(icarus, (char *)buf, read_amount, &amt, ICARUS_WAIT_TIMEOUT, C_GETRESULTS); cgtime(&read_finish); if (err < 0 && err != LIBUSB_ERROR_TIMEOUT) { - applog(LOG_ERR, "%s%i: Comms error", icarus->drv->name, icarus->device_id); + applog(LOG_ERR, "%s%i: Comms error (err=%d amt=%d)", + icarus->drv->name, icarus->device_id, err, amt); dev_error(icarus, REASON_DEV_COMMS_ERROR); return ICA_NONCE_ERROR; }