mirror of https://gitee.com/openkylin/libvirt.git
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;
|
||||
}
|
||||
|
||||
static int
|
||||
virDomainSysinfoDefFormat(virBufferPtr buf,
|
||||
virSysinfoDefPtr def)
|
||||
{
|
||||
int ret;
|
||||
virBufferAdjustIndent(buf, 2);
|
||||
ret = virSysinfoFormat(buf, def);
|
||||
virBufferAdjustIndent(buf, -2);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
virDomainWatchdogDefFormat(virBufferPtr buf,
|
||||
|
@ -18890,7 +18879,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
|
|||
virDomainResourceDefFormat(buf, def->resource);
|
||||
|
||||
if (def->sysinfo)
|
||||
virDomainSysinfoDefFormat(buf, def->sysinfo);
|
||||
virSysinfoFormat(buf, def->sysinfo);
|
||||
|
||||
if (def->os.bootloader) {
|
||||
virBufferEscapeString(buf, "<bootloader>%s</bootloader>\n",
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
||||
</disk>
|
||||
<controller type='ide' index='0'/>
|
||||
<controller type='usb' index='0'/>
|
||||
<controller type='pci' index='0' model='pci-root'/>
|
||||
<memballoon model='virtio'/>
|
||||
</devices>
|
||||
</domain>
|
||||
|
|
|
@ -405,6 +405,7 @@ mymain(void)
|
|||
|
||||
DO_TEST("tap-vhost");
|
||||
DO_TEST("shmem");
|
||||
DO_TEST("smbios");
|
||||
|
||||
virObjectUnref(driver.caps);
|
||||
virObjectUnref(driver.xmlopt);
|
||||
|
|
Loading…
Reference in New Issue