Browse Source

adl: only ask for iDrvIndex on Linux.

Should close https://github.com/veox/sgminer/issues/45
nfactor-troky
Noel Maersk 11 years ago
parent
commit
2879994408
  1. 4
      adl.c

4
adl.c

@ -343,7 +343,9 @@ void init_adl(int nDevs)
"strUDID:%s " "strUDID:%s "
"iBusNumber:%d " "iBusNumber:%d "
"iDeviceNumber:%d " "iDeviceNumber:%d "
#if defined(__linux)
"iDrvIndex:%d " "iDrvIndex:%d "
#endif
"iFunctionNumber:%d " "iFunctionNumber:%d "
"iVendorID:%d " "iVendorID:%d "
"name:%s", "name:%s",
@ -353,7 +355,9 @@ void init_adl(int nDevs)
lpInfo[i].strUDID, lpInfo[i].strUDID,
lpInfo[i].iBusNumber, lpInfo[i].iBusNumber,
lpInfo[i].iDeviceNumber, lpInfo[i].iDeviceNumber,
#if defined(__linux)
lpInfo[i].iDrvIndex, lpInfo[i].iDrvIndex,
#endif
lpInfo[i].iFunctionNumber, lpInfo[i].iFunctionNumber,
lpInfo[i].iVendorID, lpInfo[i].iVendorID,
lpInfo[i].strAdapterName); lpInfo[i].strAdapterName);

Loading…
Cancel
Save