mirror of https://gitee.com/openkylin/libvirt.git
qemu: print PCI address hexadecimally in errors
Use the same formatting as we do for XML in error and debug outputs.
This commit is contained in:
parent
8e5928de98
commit
ba8b8ddb7f
|
@ -1204,7 +1204,7 @@ static char *qemuPCIAddressAsString(virDevicePCIAddressPtr addr)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (virAsprintf(&str, "%d:%d:%d.%d",
|
||||
if (virAsprintf(&str, "%.4x:%.2x:%.2x.%.1x",
|
||||
addr->domain,
|
||||
addr->bus,
|
||||
addr->slot,
|
||||
|
|
Loading…
Reference in New Issue