From 532c04e297d24a0c9a79382fede7ec35f9b71e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 23 Jul 2019 11:06:33 +0100 Subject: [PATCH] libvirt: correctly print out URI returned from probing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- src/libvirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } } -- GitLab