Browse Source

Correct the mem argv index and print the intended change

Marc Di Luzio 6 years ago
parent
commit
4152104d2b
1 changed files with 7 additions and 1 deletions
  1. 7 1
      daemon/gpuclockctl.c

+ 7 - 1
daemon/gpuclockctl.c

@@ -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 {