Browse Source

bitforce: Include new total queued count in flush debugging

Luke Dashjr 12 years ago
parent
commit
c86d00ad42
1 changed files with 4 additions and 3 deletions
  1. 4 3
      driver-bitforce.c

+ 4 - 3
driver-bitforce.c

@@ -1375,10 +1375,11 @@ void bitforce_queue_flush(struct thr_info *thr)
 	else
 		flushed = atoi(&buf[10]);
 	
-	applog(LOG_DEBUG, "%"PRIpreprv": Flushed %u jobs from device and %d from driver",
-	       bitforce->proc_repr, flushed, data->ready_to_queue);
-	
 	data->queued -= flushed;
+	
+	applog(LOG_DEBUG, "%"PRIpreprv": Flushed %u jobs from device and %d from driver (queued<=%d)",
+	       bitforce->proc_repr, flushed, data->ready_to_queue, data->queued);
+	
 	flushed += data->ready_to_queue;
 	data->ready_to_queue = 0;
 	while (flushed--)