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

Loading…
Cancel
Save