From: Daniel P. Berrangé Date: Tue, 23 Jul 2019 10:06:33 +0000 (+0100) Subject: libvirt: correctly print out URI returned from probing X-Git-Tag: v5.6.0-rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=532c04e297d24a0c9a79382fede7ec35f9b71e74;p=thirdparty%2Flibvirt.git libvirt: correctly print out URI returned from probing 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 Signed-off-by: Daniel P. Berrangé --- diff --git a/src/libvirt.c b/src/libvirt.c index 7e665b6cba..f0a768fc7e 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -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)); } } }