]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: eliminate outmoded/odd indent method from interface xml
authorLaine Stump <laine@laine.org>
Wed, 5 Mar 2014 12:24:22 +0000 (14:24 +0200)
committerLaine Stump <laine@laine.org>
Fri, 14 Mar 2014 04:40:39 +0000 (22:40 -0600)
commit257e62dfee2cec94e907f33cecf0fb69970c9761
tree0b820ecfa419c02a0810bca92e870f1257a49a0b
parentb1258b27471ebd7a8b185c1a9ec24f7de3de9d23
conf: eliminate outmoded/odd indent method from interface xml

These format functions needed the ability to be indented by an
arbitrary amount, but were written before the introduction of
virBufferAdjustIndent(). They instead used the much more clunky method
of adding a "level" arg to every format function, and padding with
spaces using the "%*s" printf format specifier (giving it the level,
and "", which has the effect of adding level spaces to the output).

While eliminating the hardcoded indentation in other xml, I decided it
was finally time to also modernize the interface formatter code to
make it more consistent.
src/conf/interface_conf.c