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