[libvirt] [PATCH] virsh: fix net-dhcp-leases no output in quiet mode
Martin Kletzander
mkletzan at redhat.com
Thu Nov 6 13:57:13 UTC 2014
On Sat, Nov 01, 2014 at 06:41:20PM +0800, Luyao Huang wrote:
>When run net-dhcp-leases in quiet mode, cannot get
>any output.
>
> # virsh -q net-dhcp-leases default
>
>Signed-off-by: Luyao Huang <lhuang at 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
>
ACK && will push in a while,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20141106/a81c3828/attachment-0001.sig>
More information about the libvir-list
mailing list