[libvirt] [PATCH 5/7] virsh: fix error messages in iface-bridge

Osier Yang jyang at redhat.com
Wed Nov 28 14:42:32 UTC 2012


On 2012年11月28日 21:34, Ján Tomko wrote:
> The error messages did not correspond to the attributes they printed.
> ---
>   tools/virsh-interface.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/virsh-interface.c b/tools/virsh-interface.c
> index 9ceb122..3be6d60 100644
> --- a/tools/virsh-interface.c
> +++ b/tools/virsh-interface.c
> @@ -813,13 +813,13 @@ cmdInterfaceBridge(vshControl *ctl, const vshCmd *cmd)
>        */
>       if (!xmlSetProp(if_node, BAD_CAST "type", BAD_CAST if_type)) {
>           vshError(ctl, _("Failed to set new slave interface type to '%s' in xml document"),
> -                 if_name);
> +                 if_type);
>           goto cleanup;
>       }
>
>       if (!xmlSetProp(if_node, BAD_CAST "name", BAD_CAST if_name)) {
>           vshError(ctl, _("Failed to set new slave interface name to '%s' in xml document"),
> -            br_name);
> +            if_name);
>           goto cleanup;
>       }
>

ACK




More information about the libvir-list mailing list