Commit 01a468657e7ee986a8e15f76ad922c4534008627

kanoi 2014-05-14T21:38:11

minion - idle_cnt report include correct chip number

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-minion.c b/driver-minion.c
index 941d30f..9a5d28c 100644
--- a/driver-minion.c
+++ b/driver-minion.c
@@ -2899,9 +2899,9 @@ static int64_t minion_scanwork(__maybe_unused struct thr_info *thr)
 					if (msdiff >= MINION_IDLE_MESSAGE_ms) {
 						memcpy(&(minioninfo->chip_status[chip].idle_rpt), &now, sizeof(now));
 						applog(LOG_WARNING,
-							"%s%d: chip 1 internal idle increased %08x",
+							"%s%d: chip %d internal idle increased %08x",
 							minioncgpu->drv->name, minioncgpu->device_id,
-							minioninfo->chip_status[chip].idle);
+							chip, minioninfo->chip_status[chip].idle);
 					}
 				}
 			}