Browse Source

Merge branch 'usb-dev' into queued_work

ckolivas 13 years ago
parent
commit
f910476daa
2 changed files with 3 additions and 1 deletions
  1. 2 0
      cgminer.c
  2. 1 1
      util.c

+ 2 - 0
cgminer.c

@@ -3010,6 +3010,8 @@ void __copy_work(struct work *work, struct work *base_work)
 		work->nonce2 = strdup(base_work->nonce2);
 		work->nonce2 = strdup(base_work->nonce2);
 	if (base_work->ntime)
 	if (base_work->ntime)
 		work->ntime = strdup(base_work->ntime);
 		work->ntime = strdup(base_work->ntime);
+	if (base_work->sessionid)
+		work->sessionid = strdup(base_work->sessionid);
 	if (base_work->gbt_coinbase)
 	if (base_work->gbt_coinbase)
 		work->gbt_coinbase = strdup(base_work->gbt_coinbase);
 		work->gbt_coinbase = strdup(base_work->gbt_coinbase);
 }
 }

+ 1 - 1
util.c

@@ -1517,7 +1517,7 @@ bool initiate_stratum(struct pool *pool)
 	if (pool->sessionid)
 	if (pool->sessionid)
 		applog(LOG_DEBUG, "Pool %d stratum session id: %s", pool->pool_no, pool->sessionid);
 		applog(LOG_DEBUG, "Pool %d stratum session id: %s", pool->pool_no, pool->sessionid);
 	else
 	else
-		applog(LOG_DEBUG, "Pool %d stratum session id does not exist");
+		applog(LOG_DEBUG, "Pool %d stratum session id does not exist", pool->pool_no);
 
 
 	ret = true;
 	ret = true;
 out:
 out: