mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
Fix indentation of sysinfo data
The <sysinfo> data block was indented by 2 spaces too many. This was missed because we never had any test validating the XML formatting.
This commit is contained in:
parent
a0b6c98d59
commit
0d36a5d05a
@ -17668,17 +17668,6 @@ virDomainNVRAMDefFormat(virBufferPtr buf,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
|
||||||
virDomainSysinfoDefFormat(virBufferPtr buf,
|
|
||||||
virSysinfoDefPtr def)
|
|
||||||
{
|
|
||||||
int ret;
|
|
||||||
virBufferAdjustIndent(buf, 2);
|
|
||||||
ret = virSysinfoFormat(buf, def);
|
|
||||||
virBufferAdjustIndent(buf, -2);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
virDomainWatchdogDefFormat(virBufferPtr buf,
|
virDomainWatchdogDefFormat(virBufferPtr buf,
|
||||||
@ -18890,7 +18879,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
|
|||||||
virDomainResourceDefFormat(buf, def->resource);
|
virDomainResourceDefFormat(buf, def->resource);
|
||||||
|
|
||||||
if (def->sysinfo)
|
if (def->sysinfo)
|
||||||
virDomainSysinfoDefFormat(buf, def->sysinfo);
|
virSysinfoFormat(buf, def->sysinfo);
|
||||||
|
|
||||||
if (def->os.bootloader) {
|
if (def->os.bootloader) {
|
||||||
virBufferEscapeString(buf, "<bootloader>%s</bootloader>\n",
|
virBufferEscapeString(buf, "<bootloader>%s</bootloader>\n",
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||||
</disk>
|
</disk>
|
||||||
<controller type='ide' index='0'/>
|
<controller type='ide' index='0'/>
|
||||||
|
<controller type='usb' index='0'/>
|
||||||
|
<controller type='pci' index='0' model='pci-root'/>
|
||||||
<memballoon model='virtio'/>
|
<memballoon model='virtio'/>
|
||||||
</devices>
|
</devices>
|
||||||
</domain>
|
</domain>
|
||||||
|
@ -405,6 +405,7 @@ mymain(void)
|
|||||||
|
|
||||||
DO_TEST("tap-vhost");
|
DO_TEST("tap-vhost");
|
||||||
DO_TEST("shmem");
|
DO_TEST("shmem");
|
||||||
|
DO_TEST("smbios");
|
||||||
|
|
||||||
virObjectUnref(driver.caps);
|
virObjectUnref(driver.caps);
|
||||||
virObjectUnref(driver.xmlopt);
|
virObjectUnref(driver.xmlopt);
|
||||||
|
Loading…
Reference in New Issue
Block a user