Commit d963689e8a852f5f6f957f5d7938ca074eb5e3cd

Con Kolivas 2014-02-28T10:39:27

Add more information to a hfa bad sequence tail event.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 256ba1d..cf053d5 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -863,8 +863,10 @@ static void hfa_parse_gwq_status(struct cgpu_info *hashfast, struct hashfast_inf
 		if (++info->hash_sequence_tail >= info->num_sequence)
 			info->hash_sequence_tail = 0;
 		if (unlikely(!(work = info->works[info->hash_sequence_tail]))) {
-			applog(LOG_ERR, "%s %d: Bad work sequence tail",
-			       hashfast->drv->name, hashfast->device_id);
+			applog(LOG_ERR, "%s %d: Bad work sequence tail %d head %d devhead %d devtail %d sequence %d",
+			       hashfast->drv->name, hashfast->device_id, info->hash_sequence_tail,
+			       info->hash_sequence_head, info->device_sequence_head,
+			       info->device_sequence_tail, info->num_sequence);
 			hashfast->shutdown = true;
 			usb_nodev(hashfast);
 			break;