From d510d4bf92c99dfbee8d29dd4408cd78694aaf16 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 15 Oct 2008 10:33:01 +0000 Subject: [PATCH] * src/libvirt.c: Register the remote driver even when we are configured --without-libvirtd. Also adds debugging of registration events. --- ChangeLog | 6 ++++++ src/libvirt.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f44d75f6c8..37152112b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Oct 15 11:28:00 BST 2008 Richard W.M. Jones + + * src/libvirt.c: Register the remote driver even when we are + configured --without-libvirtd. Also adds debugging of + registration events. + Mon Oct 13 18:45:43 CEST 2008 Jim Meyering avoid many format string warnings diff --git a/src/libvirt.c b/src/libvirt.c index fd6422d682..ca2675a1df 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -300,9 +300,9 @@ virInitialize(void) if (networkRegister() == -1) return -1; #endif if (storageRegister() == -1) return -1; +#endif #ifdef WITH_REMOTE if (remoteRegister () == -1) return -1; -#endif #endif return(0); @@ -543,6 +543,9 @@ virRegisterDriver(virDriverPtr driver) return -1; } + DEBUG ("registering %s as driver %d", + driver->name, virDriverTabCount); + virDriverTab[virDriverTabCount] = driver; return virDriverTabCount++; } -- GitLab