Commit 920c56c93bc778b269f033b15c00d4ae5e0c1dc3

Con Kolivas 2012-08-06T11:39:32

Add specific information when ADL detects error -10 saying the device is not enabled.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/adl.c b/adl.c
index 85ec0aa..69c06de 100644
--- a/adl.c
+++ b/adl.c
@@ -241,6 +241,8 @@ void init_adl(int nDevs)
 		result = ADL_Adapter_ID_Get(iAdapterIndex, &lpAdapterID);
 		if (result != ADL_OK) {
 			applog(LOG_INFO, "Failed to ADL_Adapter_ID_Get. Error %d", result);
+			if (result == -10)
+				applog(LOG_INFO, "This error says the device is not enabled");
 			continue;
 		}