From 75d0a45a1081aad1174c97063fc59d3c917a024e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 5 Nov 2012 23:47:44 +1100 Subject: [PATCH] Show which pool untracked share messages have come from. --- cgminer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cgminer.c b/cgminer.c index a2ee1eeb..9d8e96a0 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4547,7 +4547,7 @@ static void stratum_share_result(json_t *val, json_t *res_val, json_t *err_val, /* Parses stratum json responses and tries to find the id that the request * matched to and treat it accordingly. */ -static bool parse_stratum_response(char *s) +static bool parse_stratum_response(struct pool *pool, char *s) { json_t *val = NULL, *err_val, *res_val, *id_val; struct stratum_share *sshare; @@ -4588,9 +4588,9 @@ static bool parse_stratum_response(char *s) mutex_unlock(&sshare_lock); if (!sshare) { if (json_is_true(res_val)) - applog(LOG_NOTICE, "Accepted untracked stratum share"); + applog(LOG_NOTICE, "Accepted untracked stratum share from pool %d", pool->pool_no); else - applog(LOG_NOTICE, "Rejected untracked stratum share"); + applog(LOG_NOTICE, "Rejected untracked stratum share from pool %d", pool->pool_no); goto out; } stratum_share_result(val, res_val, err_val, sshare); @@ -4684,7 +4684,7 @@ static void *stratum_thread(void *userdata) continue; } - if (!parse_method(pool, s) && !parse_stratum_response(s)) + if (!parse_method(pool, s) && !parse_stratum_response(pool, s)) applog(LOG_INFO, "Unknown stratum msg: %s", s); free(s); if (pool->swork.clean) {