]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: replace vshPrint with vshPrintExtra for snapshot list
authorOsier Yang <jyang@redhat.com>
Tue, 22 Feb 2011 02:06:08 +0000 (10:06 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 22 Feb 2011 02:06:08 +0000 (10:06 +0800)
Otherwise extra information will be printed even if "--quiet"
is specified.

* tools/virsh.c

tools/virsh.c

index ce275f1b9fd5d688df771c86f83fee9f5964d559..2837e0f6aad5e66fccfd1b04d9919be765a02492 100644 (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)