[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] virsh: fix net-dhcp-leases no output in quiet mode



When run net-dhcp-leases in quiet mode, cannot get
any output.

 # virsh -q net-dhcp-leases default

Signed-off-by: Luyao Huang <lhuang redhat com>
---
 tools/virsh-network.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/virsh-network.c b/tools/virsh-network.c
index 4610a34..8f9fbd3 100644
--- a/tools/virsh-network.c
+++ b/tools/virsh-network.c
@@ -1377,10 +1377,10 @@ cmdNetworkDHCPLeases(vshControl *ctl, const vshCmd *cmd)
         ignore_value(virAsprintf(&cidr_format, "%s/%d",
                                  lease->ipaddr, lease->prefix));
 
-        vshPrintExtra(ctl, " %-20s %-18s %-9s %-25s %-15s %s\n",
-                      expirytime, EMPTYSTR(lease->mac),
-                      EMPTYSTR(typestr), cidr_format,
-                      EMPTYSTR(lease->hostname), EMPTYSTR(lease->clientid));
+        vshPrint(ctl, " %-20s %-18s %-9s %-25s %-15s %s\n",
+                 expirytime, EMPTYSTR(lease->mac),
+                 EMPTYSTR(typestr), cidr_format,
+                 EMPTYSTR(lease->hostname), EMPTYSTR(lease->clientid));
 
         VIR_FREE(cidr_format);
     }
-- 
1.8.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]