Commit 641dbce8ad9a9dcf6360fe06be86105532dca8ae

Con Kolivas 2012-11-23T13:47:40

Merge pull request #330 from luke-jr/err_func_nostart opencl: Use new dev_error function for REASON_DEV_NOSTART

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-opencl.c b/driver-opencl.c
index eec6ce7..3ce14a5 100644
--- a/driver-opencl.c
+++ b/driver-opencl.c
@@ -1359,9 +1359,7 @@ static bool opencl_thread_prepare(struct thr_info *thr)
 		cgpu->deven = DEV_DISABLED;
 		cgpu->status = LIFE_NOSTART;
 
-		cgpu->device_last_not_well = time(NULL);
-		cgpu->device_not_well_reason = REASON_DEV_NOSTART;
-		cgpu->dev_nostart_count++;
+		dev_error(cgpu, REASON_DEV_NOSTART);
 
 		return false;
 	}