[libvirt] [snmp PATCH 19/20] libvirtSnmpInit: Don't report errors from libvirtRegisterEvents()

Michal Privoznik mprivozn at redhat.com
Thu Oct 18 12:26:57 UTC 2018


The libvirtRegisterEvents() function now reports errors on its
own. No need to duplicate the effort.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 src/libvirtSnmp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/libvirtSnmp.c b/src/libvirtSnmp.c
index c334967..e63942b 100644
--- a/src/libvirtSnmp.c
+++ b/src/libvirtSnmp.c
@@ -254,10 +254,8 @@ int libvirtSnmpInit(void)
         return -1;
     }
 
-    if ((callbackRet == -1) && libvirtRegisterEvents(conn)) {
-        printf("Unable to register domain events\n");
+    if ((callbackRet == -1) && libvirtRegisterEvents(conn))
         return -1;
-    }
 
     return 0;
 }
-- 
2.18.1




More information about the libvir-list mailing list