[libvirt] [PATCH 41/41] libvirt: correctly print out URI returned from probing

Daniel P. Berrangé berrange at redhat.com
Tue Jul 23 16:03:19 UTC 2019


Turning a NULL URI instead the empty string is very misleading when
reading the debug logs as the distinction between the two is
functionally important.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 src/libvirt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvirt.c b/src/libvirt.c
index 22efd4da95..7055f8e317 100644
--- a/src/libvirt.c
+++ b/src/libvirt.c
@@ -920,7 +920,7 @@ virConnectOpenInternal(const char *name,
                         goto failed;
                     VIR_DEBUG("%s driver URI probe returned '%s'",
                               virConnectDriverTab[i]->hypervisorDriver->name,
-                              NULLSTR_EMPTY(uristr));
+                              NULLSTR(uristr));
                 }
             }
         }
-- 
2.21.0




More information about the libvir-list mailing list