diff mbox series

trace-cruncher: Fix PyFtrace_set_event_filter()

Message ID 20210917074801.550429-1-y.karadz@gmail.com (mailing list archive)
State Superseded
Headers show
Series trace-cruncher: Fix PyFtrace_set_event_filter() | expand

Commit Message

Yordan Karadzhov Sept. 17, 2021, 7:48 a.m. UTC
The Python method requires 4 arguments, however the format
descriptor of the arguments describes only 3.

Fixes: 38bdaec (trace-cruncher: Refactor the way libtracefs instances are handled)
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
 src/ftracepy-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/ftracepy-utils.c b/src/ftracepy-utils.c
index bddc4fc..302fffc 100644
--- a/src/ftracepy-utils.c
+++ b/src/ftracepy-utils.c
@@ -1316,7 +1316,7 @@  PyObject *PyFtrace_set_event_filter(PyObject *self, PyObject *args,
 	static char *kwlist[] = {"system", "event", "filter", "instance", NULL};
 	if (!PyArg_ParseTupleAndKeywords(args,
 					 kwargs,
-					 "ssO|)",
+					 "sss|O)",
 					 kwlist,
 					 &system,
 					 &event,