virsh: replace vshPrint with vshPrintExtra for snapshot list

Otherwise extra information will be printed even if "--quiet"
is specified.

* tools/virsh.c
This commit is contained in:
Osier Yang 2011-02-22 10:06:08 +08:00
parent 606d63054c
commit 8fcc76a6e2

View File

@ -10000,8 +10000,8 @@ cmdSnapshotList(vshControl *ctl, const vshCmd *cmd)
if (numsnaps < 0)
goto cleanup;
vshPrint(ctl, " %-20s %-25s %s\n", _("Name"), _("Creation Time"), _("State"));
vshPrint(ctl, "---------------------------------------------------\n");
vshPrintExtra(ctl, " %-20s %-25s %s\n", _("Name"), _("Creation Time"), _("State"));
vshPrintExtra(ctl, "---------------------------------------------------\n");
if (numsnaps) {
if (VIR_ALLOC_N(names, numsnaps) < 0)