35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
|
|
From 387b95910caf87f8a7bb7d92b5258fc2ef46453d Mon Sep 17 00:00:00 2001
|
||
|
|
From: qihao <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Fri, 17 Mar 2023 11:14:32 +0800
|
||
|
|
Subject: [PATCH] Fix BlockThreshold Callback argument conversion once more
|
||
|
|
|
||
|
|
The conversion was changed from "OssiiO" to "OssLLO". Unfortunately the
|
||
|
|
arguments are unsigned long long, where the proper coversion character
|
||
|
|
is 'K'.
|
||
|
|
|
||
|
|
Fixes: https://gitlab.com/libvirt/libvirt-python/-/merge_requests/40
|
||
|
|
Fixes: fd069ac85c8cf1593587dc9287a3d5eb6bd4bdb9
|
||
|
|
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1976109
|
||
|
|
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
||
|
|
Signed-off-by: qihao <qihao_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
libvirt-override.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/libvirt-override.c b/libvirt-override.c
|
||
|
|
index 2b39ace..48dfe4e 100644
|
||
|
|
--- a/libvirt-override.c
|
||
|
|
+++ b/libvirt-override.c
|
||
|
|
@@ -7231,7 +7231,7 @@ libvirt_virConnectDomainEventBlockThresholdCallback(virConnectPtr conn ATTRIBUTE
|
||
|
|
/* Call the Callback Dispatcher */
|
||
|
|
pyobj_ret = PyObject_CallMethod(pyobj_conn,
|
||
|
|
(char*)"_dispatchDomainEventBlockThresholdCallback",
|
||
|
|
- (char*)"OssiiO",
|
||
|
|
+ (char*)"OssKKO",
|
||
|
|
pyobj_dom, dev, path, threshold, excess,
|
||
|
|
pyobj_cbData);
|
||
|
|
|
||
|
|
--
|
||
|
|
2.18.2
|
||
|
|
|