mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
domain_capabilities: reformat virDomainCapsCPUCustomFormat()
Signed-off-by: Kristina Hanicova <khanicov@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
27d4ba02ee
commit
f08d9efc4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user