From: Ján Tomko Date: Wed, 3 Apr 2013 16:11:32 +0000 (+0200) Subject: qemu: print PCI address hexadecimally in errors X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ba8b8ddb7f776cb70236c5be9c49f35e30f022ca;p=libvirt.git qemu: print PCI address hexadecimally in errors Use the same formatting as we do for XML in error and debug outputs. --- diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 8deca313f4..d32b34165f 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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,