Message ID | 20211001133346.8217-4-y.karadz@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | trace-cruncher: Improve error messages | expand |
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; }
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@gmail.com> --- src/ftracepy-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)