From 8fcc76a6e248860162654d8a11254de0364146cc Mon Sep 17 00:00:00 2001 From: Osier Yang Date: Tue, 22 Feb 2011 10:06:08 +0800 Subject: [PATCH] virsh: replace vshPrint with vshPrintExtra for snapshot list Otherwise extra information will be printed even if "--quiet" is specified. * tools/virsh.c --- tools/virsh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index ce275f1b9f..2837e0f6aa 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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)