From 920c56c93bc778b269f033b15c00d4ae5e0c1dc3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 6 Aug 2012 11:39:32 +1000 Subject: [PATCH] Add specific information when ADL detects error -10 saying the device is not enabled. --- adl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adl.c b/adl.c index 85ec0aaf..69c06dee 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; }