summaryrefslogtreecommitdiffstats
path: root/pcilib/py.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-10-13 01:59:17 +0200
commit2e9457b666a303fab83aa17e33624f39de9a1dd7 (patch)
tree7e1b46b4ca64a8eccb7122df33a32c48239d4c62 /pcilib/py.c
parent1200eca62c4c47617fa60033f9a0ee25bd26c431 (diff)
downloadpcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.gz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.bz2
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.tar.xz
pcitool-2e9457b666a303fab83aa17e33624f39de9a1dd7.zip
Support writting register views
Diffstat (limited to 'pcilib/py.c')
-rw-r--r--pcilib/py.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pcilib/py.c b/pcilib/py.c
index 6aaa22f..3a4fd96 100644
--- a/pcilib/py.c
+++ b/pcilib/py.c
@@ -7,6 +7,7 @@
#include "pci.h"
+#include "debug.h"
#include "pcilib.h"
#include "py.h"
#include "error.h"
@@ -167,5 +168,6 @@ int pcilib_py_eval_string(pcilib_t *ctx, const char *codestr, pcilib_value_t *va
return PCILIB_ERROR_FAILED;
}
+ pcilib_debug(VIEWS, "Evaluating a Python string \'%s\' to %lf=\'%s\'", codestr, PyFloat_AsDouble(obj), code);
return pcilib_set_value_from_float(ctx, value, PyFloat_AsDouble(obj));
}