summaryrefslogtreecommitdiffstats
path: root/pcitool/cli.c
diff options
context:
space:
mode:
authorVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
committerVasilii Chernov <vchernov@inr.ru>2016-02-11 14:24:01 +0100
commitd7fc669bf0dbe37f46d2efec4940feb8504017c2 (patch)
tree7075ee0851d52f9e448be3ff084dde1c35014558 /pcitool/cli.c
parent76ee5a167add1c169a982ab59aa0544f827cb365 (diff)
downloadpcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.gz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.bz2
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.tar.xz
pcitool-d7fc669bf0dbe37f46d2efec4940feb8504017c2.zip
Change no_set_check parameter name. Move Python wrap to separate directory.
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 cb87dcb..3e69aac 100644
--- a/pcitool/cli.c
+++ b/pcitool/cli.c
@@ -1706,7 +1706,7 @@ int WriteRegister(pcilib_t *handle, const pcilib_model_description_t *model_info
err = pcilib_read_register(handle, bank, reg, &verify);
if (err) Error("Error reading back register %s for verification\n", reg);
- if (!((model_info->registers[regid].mode&PCILIB_REGISTER_NO_CHK) == PCILIB_REGISTER_NO_CHK) &&
+ if (!((model_info->registers[regid].mode&PCILIB_REGISTER_INCONSISTENT) == PCILIB_REGISTER_INCONSISTENT) &&
verify != value) {
Error("Failed to write register %s: %lu is written and %lu is read back", reg, value, verify);
} else {