]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: print PCI address hexadecimally in errors
authorJán Tomko <jtomko@redhat.com>
Wed, 3 Apr 2013 16:11:32 +0000 (18:11 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 19 Apr 2013 15:50:54 +0000 (17:50 +0200)
Use the same formatting as we do for XML in error and debug outputs.

src/qemu/qemu_command.c

index 8deca313f4b086cc2311523dc286db34ddf488ef..d32b34165fb3ad02464347744263989573433ce3 100644 (file)
@@ -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,