From 86ba7d79df18f7de5a1c2b98bcd5ce91338790ff Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 5 Jul 2012 22:39:41 +1000 Subject: [PATCH] Display the actual duration of wait when it is greater than the cutoff. --- driver-bitforce.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver-bitforce.c b/driver-bitforce.c index 21a86ffc..53742302 100644 --- a/driver-bitforce.c +++ b/driver-bitforce.c @@ -359,7 +359,8 @@ static uint64_t bitforce_get_result(struct thr_info *thr, struct work *work) } if (bitforce->wait_ms >= BITFORCE_TIMEOUT_MS) { - applog(LOG_ERR, "BFL%i: took longer than %dms", bitforce->device_id, BITFORCE_TIMEOUT_MS); + applog(LOG_ERR, "BFL%i: took %dms - longer than %dms", bitforce->device_id, + bitforce->wait_ms, BITFORCE_TIMEOUT_MS); bitforce->device_last_not_well = time(NULL); bitforce->device_not_well_reason = REASON_DEV_OVER_HEAT; bitforce->dev_over_heat_count++;