domain_capabilities: reformat virDomainCapsCPUCustomFormat()

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Kristina Hanicova 2022-07-21 12:45:48 +02:00 committed by Martin Kletzander
parent 27d4ba02ee
commit f08d9efc4d

View 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);