Indeed, the callback function can be included from a plugin, but this is an option. In the default case it will be searched in '__main__'. Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@xxxxxxxxx> --- src/ftracepy-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ftracepy-utils.c b/src/ftracepy-utils.c index e49132d..b0f5e0e 100644 --- a/src/ftracepy-utils.c +++ b/src/ftracepy-utils.c @@ -2039,7 +2039,7 @@ static PyObject *get_callback_func(const char *plugin_name, const char * py_call py_func = PyObject_GetAttrString(py_module, py_callback); if (!py_func || !PyCallable_Check(py_func)) { TfsError_fmt(NULL, - "Failed to import callback from plugin \'%s\'", + "Failed to import callback from \'%s\'", plugin_name); return NULL; } -- 2.30.2