Commit 669b0deda3fecdec25766f5b4f09bc501678093e

Con Kolivas 2012-04-28T08:39:06

Add pool number to stale share message.

diff --git a/cgminer.c b/cgminer.c
index 847adc7..0e22859 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -2083,11 +2083,14 @@ static void *submit_work_thread(void *userdata)
 
 		if (stale_work(work, true)) {
 			if (pool->submit_old)
-				applog(LOG_NOTICE, "Stale share detected, submitting as pool requested");
+				applog(LOG_NOTICE, "Stale share detected, submitting as pool %d requested",
+				       pool->pool_no);
 			else if (opt_submit_stale)
-				applog(LOG_NOTICE, "Stale share detected, submitting as user requested");
+				applog(LOG_NOTICE, "Stale share detected from pool %d, submitting as user requested",
+					pool->pool_no);
 			else {
-				applog(LOG_NOTICE, "Stale share detected, discarding");
+				applog(LOG_NOTICE, "Stale share detected from pool %d, discarding",
+					pool->pool_no);
 				sharelog("discard", work);
 				total_stale++;
 				pool->stale_shares++;