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.
This commit is contained in:
Jim Meyering 2009-03-02 18:39:36 +00:00
parent aedf57db70
commit 9883bec50d
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View 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++) {