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:
Daniel P. Berrange 2014-10-23 18:35:57 +01:00
parent a0b6c98d59
commit 0d36a5d05a
3 changed files with 4 additions and 12 deletions

View File

@ -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",

View File

@ -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>

View File

@ -405,6 +405,7 @@ mymain(void)
DO_TEST("tap-vhost");
DO_TEST("shmem");
DO_TEST("smbios");
virObjectUnref(driver.caps);
virObjectUnref(driver.xmlopt);