From 2e9457b666a303fab83aa17e33624f39de9a1dd7 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 13 Oct 2015 01:59:17 +0200 Subject: Support writting register views --- pcilib/py.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pcilib/py.c') 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)); } -- cgit v1.2.3