]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xenFormatXLDisk: Unify commas pattern for arguments
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Oct 2016 13:59:01 +0000 (21:59 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Oct 2016 04:12:23 +0000 (06:12 +0200)
commit484f7d0069038d8ca38b499cbcc84a38aded9a64
tree7a04971554c6ef2cc2060e1c9d1ce7f93c2db856
parentdbe481a14a4c2837352b4a2179167644379fc99c
xenFormatXLDisk: Unify commas pattern for arguments

instead of:

  virBufferAdd(buf, "arg1,");
  virBufferAdd(buf, "arg2");

lets have:

  virBufferAdd(buf, "arg1");
  virBufferAdd(buf, ",arg2");

Because it's better. Consider we want to add conditionally arg3.
With this change, it's simple:

  if (cond)
    virBufferAdd(buf, ",arg3");

with current code there might be a comma hanging at EOL.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/xenconfig/xen_xl.c