]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: improve the sysinfo element XML format
authorLuyao Huang <lhuang@redhat.com>
Fri, 22 May 2015 09:26:28 +0000 (17:26 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 26 May 2015 23:57:15 +0000 (19:57 -0400)
commite14cdeb44f1c902e9383327c828e799b452da1f6
treefa6d3aac526e4834bcb94c42da5b4f983051bffe
parent733950c21cc4566f4898fe0d331bc2790930e7ce
util: improve the sysinfo element XML format

If the <sysinfo type='smbios'...> ends up not formatting any sub-elements,
then rather than formatting as:

  <sysinfo type='smbios'>
  </sysinfo>

Just format it more cleanly as:

  <sysinfo type='smbios'/>

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/util/virsysinfo.c