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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux