summaryrefslogtreecommitdiffstats
path: root/pcilib/py.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-17 18:23:48 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-17 18:23:48 +0100
commit52e32b2c9f0e5ac7cfb31fd2306e6536340955e1 (patch)
tree720e376325d14f6713df434e031c503ba8f33c1e /pcilib/py.c
parent2455a677448e0e0c17d7193bf405b734b758811b (diff)
downloadpcitool-52e32b2c9f0e5ac7cfb31fd2306e6536340955e1.tar.gz
pcitool-52e32b2c9f0e5ac7cfb31fd2306e6536340955e1.tar.bz2
pcitool-52e32b2c9f0e5ac7cfb31fd2306e6536340955e1.tar.xz
pcitool-52e32b2c9f0e5ac7cfb31fd2306e6536340955e1.zip
Support for 64-bit registes
Diffstat (limited to 'pcilib/py.c')
-rw-r--r--pcilib/py.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/py.c b/pcilib/py.c
index 5ec122f..4256afc 100644
--- a/pcilib/py.c
+++ b/pcilib/py.c
@@ -142,7 +142,7 @@ static char *pcilib_py_parse_string(pcilib_t *ctx, const char *codestr, pcilib_v
} else {
err = pcilib_read_register(ctx, NULL, reg, &regval);
if (err) break;
- sprintf(dst + offset, "0x%x", regval);
+ sprintf(dst + offset, "0x%lx", regval);
}
}