mirror of https://gitee.com/openkylin/libvirt.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 <abologna@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
019911339b
commit
532c04e297
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue