]> git.ipfire.org Git - thirdparty/libvirt.git/commit
snapshot: simplify indentation of sysinfo
authorEric Blake <eblake@redhat.com>
Wed, 21 Sep 2011 23:28:01 +0000 (17:28 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 20 Oct 2011 22:02:16 +0000 (16:02 -0600)
commit9a220665e7a5bbcb35a5a4c1815594cc7c18b87f
tree25c37f66a0e5a1e9a41142259b8f2768a930dd5c
parent27b3b303d966a7dff3bf7219e253dbefd814f97d
snapshot: simplify indentation of sysinfo

The improvements to virBuffer, along with a paradigm shift to pass
the original buffer through rather than creating a second buffer,
allow us to shave off quite a few lines of code.

* src/util/sysinfo.h (virSysinfoFormat): Alter signature.
* src/util/sysinfo.c (virSysinfoFormat, virSysinfoBIOSFormat)
(virSysinfoSystemFormat, virSysinfoProcessorFormat)
(virSysinfoMemoryFormat): Change indentation parameter.
* src/conf/domain_conf.c (virDomainSysinfoDefFormat): Adjust
caller.
* src/qemu/qemu_driver.c (qemuGetSysinfo): Likewise.
src/conf/domain_conf.c
src/qemu/qemu_driver.c
src/util/sysinfo.c
src/util/sysinfo.h