1
0
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:
Ján Tomko 2013-04-03 18:11:32 +02:00
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,