mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
qemu_capabilities: Indent <cpudata/> properly
When formatting qemuCaps XML, the <cpudata/> element is misaligned. This is because it contains multiple lines and virBufferAsprintf() does not expect that. Switch to virBufferAddStr() which does. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
This commit is contained in:
parent
9e8601c464
commit
4e39625095
@ -4756,7 +4756,7 @@ virQEMUCapsFormatCache(virQEMUCaps *qemuCaps)
|
||||
|
||||
if (qemuCaps->cpuData) {
|
||||
g_autofree char * cpudata = virCPUDataFormat(qemuCaps->cpuData);
|
||||
virBufferAsprintf(&buf, "%s", cpudata);
|
||||
virBufferAddStr(&buf, cpudata);
|
||||
}
|
||||
|
||||
virBufferAsprintf(&buf, "<arch>%s</arch>\n",
|
||||
|
Loading…
Reference in New Issue
Block a user