Correct the mem argv index and print the intended change

This commit is contained in:
Marc Di Luzio 2019-02-03 18:08:46 +00:00
parent b85edc2e04
commit 4152104d2b

View File

@ -108,7 +108,13 @@ int main(int argc, char *argv[])
info.vendor = get_vendor(argv[1]);
info.device = get_device(argv[2]);
info.core = get_coremem(argv[4]);
info.mem = get_coremem(argv[4]);
info.mem = get_coremem(argv[5]);
printf("gpuclockctl setting core:%ld mem:%ld on device:%ld with vendor 0x%04x\n",
info.core,
info.mem,
info.device,
(unsigned short)info.vendor);
return set_gpu_state(&info);
} else {