]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virsh: fix error messages in iface-bridge
authorJán Tomko <jtomko@redhat.com>
Wed, 28 Nov 2012 13:34:49 +0000 (14:34 +0100)
committerOsier Yang <jyang@redhat.com>
Wed, 28 Nov 2012 16:00:39 +0000 (00:00 +0800)
The error messages did not correspond to the attributes they printed.

tools/virsh-interface.c

index 9ceb122f9c8f7af6876254e366c1ca471e10448f..3a6285bd20916d01180997867685e66dab831580 100644 (file)
@@ -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;
     }