mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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…
Reference in New Issue
Block a user