From 64b6b7cbeffb3361a04e8648afe2bb269d2dba29 Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 27 May 2013 21:39:10 +1000 Subject: [PATCH] Icarus report data direction with comms errors --- driver-icarus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver-icarus.c b/driver-icarus.c index d698995c..7730cb61 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -387,7 +387,7 @@ 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 (err=%d amt=%d)", + applog(LOG_ERR, "%s%i: Comms error (rerr=%d amt=%d)", icarus->drv->name, icarus->device_id, err, amt); dev_error(icarus, REASON_DEV_COMMS_ERROR); return ICA_NONCE_ERROR; @@ -860,7 +860,7 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work, err = usb_write(icarus, (char *)ob_bin, sizeof(ob_bin), &amount, C_SENDWORK); if (err < 0 || amount != sizeof(ob_bin)) { - applog(LOG_ERR, "%s%i: Comms error (err=%d amt=%d)", + applog(LOG_ERR, "%s%i: Comms error (werr=%d amt=%d)", icarus->drv->name, icarus->device_id, err, amount); dev_error(icarus, REASON_DEV_COMMS_ERROR); icarus_initialise(icarus, info->baud);