summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcitool/cli.c')
-rw-r--r--pcitool/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcitool/cli.c b/pcitool/cli.c
index b168d16..26bd087 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -1320,7 +1320,7 @@ int WriteRegister(pcilib_t *handle, const pcilib_model_description_t *model_info
format = "0x%lx";
} else if((data) && !(regname)){
- err = pcilib_write_view(handle,bank,reg,*data,0,NULL);
+ err = pcilib_write_view(handle,bank,reg,"name",0,*data);
if(err) Error("can't write to the register using an enum view");
else return 0;
}