]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: tweak a format string to avoid emitting trailing space
authorJim Meyering <meyering@redhat.com>
Mon, 2 Mar 2009 18:39:36 +0000 (18:39 +0000)
committerJim Meyering <meyering@redhat.com>
Mon, 2 Mar 2009 18:39:36 +0000 (18:39 +0000)
* src/virsh.c (cmdNetworkList): Change format not to right-pad
with spaces, as that would have required a trailing blank in
an expected output file.

ChangeLog
src/virsh.c

index ff48f6b79ef83758a14dfa0e46cae8636838952e..487290d1b76689d96888cfd393859dfdada401a0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Mar 2 19:32:18 +0100 2009 Jim Meyering <meyering@redhat.com>
+
+       virsh: tweak a format string to avoid emitting trailing space
+       * src/virsh.c (cmdNetworkList): Change format not to right-pad
+       with spaces, as that would have required a trailing blank in
+       an expected output file.
+
 Mon Mar 2 12:52:16 EST 2009 Cole Robinson <crobinso@redhat.com>
 
        * src/network_conf.c: Fix bridge generation loop counter.
index 8ae79c50d2cf233cf4d2fc76e806aebce6939f03..c23fdda8c5736f27bc54d108982d2f24c5db4b6b 100644 (file)
@@ -2596,7 +2596,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
             qsort(&inactiveNames[0], maxinactive, sizeof(char*), namesorter);
         }
     }
-    vshPrintExtra(ctl, "%-20s %-10s %-10s\n", _("Name"), _("State"), _("Autostart"));
+    vshPrintExtra(ctl, "%-20s %-10s %s\n", _("Name"), _("State"), _("Autostart"));
     vshPrintExtra(ctl, "-----------------------------------------\n");
 
     for (i = 0; i < maxactive; i++) {