Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > ebe084c140192657f9094e135a84202c > files > 46

libvirt-0.8.2-29.el5.src.rpm

From 9f74a3c6620a203ef9e2173abdbed86915b95529 Mon Sep 17 00:00:00 2001
Message-Id: <9f74a3c6620a203ef9e2173abdbed86915b95529.1284409900.git.jdenemar@redhat.com>
From: Daniel P. Berrange <berrange@redhat.com>
Date: Tue, 17 Aug 2010 11:08:19 -0400
Subject: [PATCH] Log return value for virConnectGetCapabilities

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=630626

Enabling debug doesn't show the capabilities XML for a connection.
Add an extra debug statement for the return value

* src/libvirt.c: Enable debug logging of capabilities XML
(cherry picked from commit ac7baddf9d9189c23ca2a8ca069d6e2a4b1d3da7)
---
 src/libvirt.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/libvirt.c b/src/libvirt.c
index d1b210d..a411ded 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -4073,6 +4073,7 @@ virConnectGetCapabilities (virConnectPtr conn)
         ret = conn->driver->getCapabilities (conn);
         if (!ret)
             goto error;
+        DEBUG("conn=%p ret=%s", conn, ret);
         return ret;
     }
 
-- 
1.7.2.2