From eb91b03e22395e12d3dc4b2e993efce08a55f78d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 16 Jul 2011 23:31:32 +1000 Subject: [PATCH] Show last 8 characters of the share submitted. --- main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.c b/main.c index e8f421ba..eb111fe2 100644 --- a/main.c +++ b/main.c @@ -684,16 +684,16 @@ static bool submit_upstream_work(const struct work *work) if (opt_debug) applog(LOG_DEBUG, "PROOF OF WORK RESULT: true (yay!!!)"); if (!opt_quiet) - applog(LOG_WARNING, "Share accepted from %sPU %d thread %d", - cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, thr_id); + applog(LOG_WARNING, "Share %.8s accepted from %sPU %d thread %d", + hexstr + 152, cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, thr_id); } else { cgpu->rejected++; rejected++; if (opt_debug) applog(LOG_DEBUG, "PROOF OF WORK RESULT: false (booooo)"); if (!opt_quiet) - applog(LOG_WARNING, "Share rejected from %sPU %d thread %d", - cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, thr_id); + applog(LOG_WARNING, "Share %.8s rejected from %sPU %d thread %d", + hexstr + 152, cgpu->is_gpu? "G" : "C", cgpu->cpu_gpu, thr_id); } cgpu->utility = cgpu->accepted / ( total_secs ? total_secs : 1 ) * 60;