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

Michal Privoznik posted 20 patches 5 years, 9 months ago
[libvirt] [snmp PATCH 19/20] libvirtSnmpInit: Don't report errors from libvirtRegisterEvents()
Posted by Michal Privoznik 5 years, 9 months ago
The libvirtRegisterEvents() function now reports errors on its
own. No need to duplicate the effort.

Signed-off-by: Michal Privoznik <mprivozn@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list