diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2016-08-24 00:45:58 +0200 |
---|---|---|
committer | Michal Privoznik <mprivozn@redhat.com> | 2016-08-24 17:05:18 +0200 |
commit | 2236fb90faae770a94cda49fb539e46847714d4b (patch) | |
tree | 49864014f0789c8de0a8497d6fca9641fd29e8fb /libvirt-qemu-override.c | |
parent | 0b050dd015a9bf09000c17bd0eb0c868b75bec6e (diff) | |
download | libvirt-python-2236fb90faae770a94cda49fb539e46847714d4b.tar.gz |
PyArg_ParseTuple: Provide correct function namesv2.2.0
At the end of the format string we put :virFunctionName where ':'
says "this is the end of argument list", and virFunctionName is
the prefix for error messages then. However, in some cases we
have had wrong names there. Some of them are actually quite
funny: xmlRegisterErrorHandler.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Diffstat (limited to 'libvirt-qemu-override.c')
-rw-r--r-- | libvirt-qemu-override.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libvirt-qemu-override.c b/libvirt-qemu-override.c index f2e876a..f166f6e 100644 --- a/libvirt-qemu-override.c +++ b/libvirt-qemu-override.c @@ -270,7 +270,8 @@ libvirt_qemu_virConnectDomainQemuMonitorEventRegister(PyObject *self ATTRIBUTE_U virDomainPtr dom; unsigned int flags; - if (!PyArg_ParseTuple(args, (char *) "OOzOI", &pyobj_conn, &pyobj_dom, + if (!PyArg_ParseTuple(args, (char *) "OOzOI:virConnectDomainQemuMonitorEventRegister", + &pyobj_conn, &pyobj_dom, &event, &pyobj_cbData, &flags)) return NULL; |