mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
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…
x
Reference in New Issue
Block a user