[PATCH 1/2] lib: Debug print all arguments of virNetworkUpdate()

Michal Privoznik mprivozn at redhat.com
Tue Mar 2 09:12:56 UTC 2021


Somehow, command argument was not printed into debug logs. It is
imperative that all arguments are logged.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/libvirt-network.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libvirt-network.c b/src/libvirt-network.c
index 92bdbacbff..b84389f762 100644
--- a/src/libvirt-network.c
+++ b/src/libvirt-network.c
@@ -530,8 +530,8 @@ virNetworkUpdate(virNetworkPtr network,
                  unsigned int flags)
 {
     virConnectPtr conn;
-    VIR_DEBUG("network=%p, section=%d, parentIndex=%d, xml=%s, flags=0x%x",
-              network, section, parentIndex, xml, flags);
+    VIR_DEBUG("network=%p, command=%d, section=%d, parentIndex=%d, xml=%s, flags=0x%x",
+              network, command, section, parentIndex, xml, flags);
 
     virResetLastError();
 
-- 
2.26.2




More information about the libvir-list mailing list