From 4152104d2bae28d617e49f1fa032d4e9065f5ac3 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 3 Feb 2019 18:08:46 +0000 Subject: [PATCH] Correct the mem argv index and print the intended change --- daemon/gpuclockctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/daemon/gpuclockctl.c b/daemon/gpuclockctl.c index cb32baf..aec086c 100644 --- a/daemon/gpuclockctl.c +++ b/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 {