Browse Source

Print the 3 parameters that are passed to applog for a debug line in bitforce.c

nfactor-troky
Con Kolivas 12 years ago
parent
commit
efba82fb56
  1. 2
      driver-bitforce.c

2
driver-bitforce.c

@ -415,7 +415,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work) @@ -415,7 +415,7 @@ static int64_t bitforce_get_result(struct thr_info *thr, struct work *work)
}
if (delay_time_ms != bitforce->sleep_ms)
applog(LOG_DEBUG, "BFL%i: Wait time changed to: %d", bitforce->device_id, bitforce->sleep_ms, bitforce->wait_ms);
applog(LOG_DEBUG, "BFL%i: Wait time changed to: %d, waited %u", bitforce->device_id, bitforce->sleep_ms, bitforce->wait_ms);
/* Work out the average time taken. Float for calculation, uint for display */
bitforce->avg_wait_f += (tv_to_ms(elapsed) - bitforce->avg_wait_f) / TIME_AVG_CONSTANT;

Loading…
Cancel
Save