]> xenbits.xensource.com Git - libvirt.git/commitdiff
domain_capabilities: reformat virDomainCapsCPUCustomFormat()
authorKristina Hanicova <khanicov@redhat.com>
Thu, 21 Jul 2022 10:45:48 +0000 (12:45 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Jul 2022 10:56:59 +0000 (12:56 +0200)
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_capabilities.c

index 6e8f957657913a25f945775c06b34aeefd4af7fa..653123f2934263858ae34717706e067ca6462268 100644 (file)
@@ -376,12 +376,14 @@ virDomainCapsCPUCustomFormat(virBuffer *buf,
 
     for (i = 0; i < custom->nmodels; i++) {
         virDomainCapsCPUModel *model = custom->models + i;
+
         virBufferAsprintf(buf, "<model usable='%s'",
                           virDomainCapsCPUUsableTypeToString(model->usable));
+
         if (model->deprecated)
             virBufferAddLit(buf, " deprecated='yes'");
-        virBufferAsprintf(buf, ">%s</model>\n",
-                          model->name);
+
+        virBufferAsprintf(buf, ">%s</model>\n", model->name);
     }
 
     virBufferAdjustIndent(buf, -2);