]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt: correctly print out URI returned from probing
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 23 Jul 2019 10:06:33 +0000 (11:06 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 29 Jul 2019 16:27:59 +0000 (17:27 +0100)
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.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/libvirt.c

index 7e665b6cba745c6940baf75fd1596f33f1ea3674..f0a768fc7e0058952c0d1aeabefea76fcda9e504 100644 (file)
@@ -886,7 +886,7 @@ virConnectOpenInternal(const char *name,
                         goto failed;
                     VIR_DEBUG("%s driver URI probe returned '%s'",
                               virConnectDriverTab[i]->hypervisorDriver->name,
-                              NULLSTR_EMPTY(uristr));
+                              NULLSTR(uristr));
                 }
             }
         }