Browse Source

bflsc more detailed results failure messages

nfactor-troky
Kano 12 years ago
parent
commit
a7c307952b
  1. 20
      driver-bflsc.c

20
driver-bflsc.c

@ -1276,8 +1276,10 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, char *xlink, char *
num = atoi(fields[QUE_NONCECOUNT]); num = atoi(fields[QUE_NONCECOUNT]);
if (num != count - QUE_FLD_MIN) { if (num != count - QUE_FLD_MIN) {
applog(LOG_ERR, "%s%i:%s incorrect data count (%d) will use %d instead", tmp = str_text(data);
bflsc->drv->name, bflsc->device_id, xlink, num, count - QUE_FLD_MAX); applog(LOG_ERR, "%s%i:%s incorrect data count (%d) will use %d instead from (%s)",
bflsc->drv->name, bflsc->device_id, xlink, num, count - QUE_FLD_MAX, tmp);
free(tmp);
} }
memset(midstate, 0, MIDSTATE_BYTES); memset(midstate, 0, MIDSTATE_BYTES);
@ -1288,7 +1290,7 @@ static void process_nonces(struct cgpu_info *bflsc, int dev, char *xlink, char *
work = find_queued_work_bymidstate(bflsc, midstate, MIDSTATE_BYTES, work = find_queued_work_bymidstate(bflsc, midstate, MIDSTATE_BYTES,
blockdata, MERKLE_OFFSET, MERKLE_BYTES); blockdata, MERKLE_OFFSET, MERKLE_BYTES);
if (!work) { if (!work) {
applog(LOG_ERR, "%s%i:%s failed to find work - can't be processed - ignored", applog(LOG_ERR, "%s%i:%s failed to find nonce work - can't be processed - ignored",
bflsc->drv->name, bflsc->device_id, xlink); bflsc->drv->name, bflsc->device_id, xlink);
return; return;
} }
@ -1368,8 +1370,8 @@ static int process_results(struct cgpu_info *bflsc, int dev, char *buf, int *non
} else if (count != 1) { } else if (count != 1) {
tmp = str_text(buf); tmp = str_text(buf);
tmp2 = str_text(items[1]); tmp2 = str_text(items[1]);
applog(LOG_ERR, "%s%i:%s incorrect result count (%s) in (%s) will try anyway", applog(LOG_ERR, "%s%i:%s incorrect result count %d (%s) in (%s) will try anyway",
bflsc->drv->name, bflsc->device_id, xlink, tmp2, tmp); bflsc->drv->name, bflsc->device_id, xlink, count, tmp2, tmp);
free(tmp2); free(tmp2);
free(tmp); free(tmp);
} }
@ -1380,9 +1382,11 @@ static int process_results(struct cgpu_info *bflsc, int dev, char *buf, int *non
// 1+ In case the last line isn't 'OK' - try to process it // 1+ In case the last line isn't 'OK' - try to process it
que = 1 + lines - QUE_RES_LINES_MIN; que = 1 + lines - QUE_RES_LINES_MIN;
tmp = str_text(items[0]); tmp = str_text(buf);
applog(LOG_ERR, "%s%i:%s incorrect result count (%s) %d but should be %d will try %d anyway", tmp2 = str_text(items[0]);
bflsc->drv->name, bflsc->device_id, xlink, tmp, i, que, que); applog(LOG_ERR, "%s%i:%s incorrect result count %d (%s) will try %d (%s)",
bflsc->drv->name, bflsc->device_id, xlink, i, tmp2, que, tmp);
free(tmp2);
free(tmp); free(tmp);
} }

Loading…
Cancel
Save