[libvirt] [PATCH 05/10] Specify name of target interface with macvlan error

Daniel P. Berrange berrange at redhat.com
Tue Nov 27 17:06:24 UTC 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

When failing to create a macvlan interface, make sure the
error message contains the name of the host interface

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 src/util/virnetdevmacvlan.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virnetdevmacvlan.c b/src/util/virnetdevmacvlan.c
index bd26ba9..d8e646a 100644
--- a/src/util/virnetdevmacvlan.c
+++ b/src/util/virnetdevmacvlan.c
@@ -176,8 +176,8 @@ virNetDevMacVLanCreate(const char *ifname,
 
         default:
             virReportSystemError(-err->error,
-                                 _("error creating %s type of interface"),
-                                 type);
+                                 _("error creating %s type of interface attach to %s"),
+                                 type, srcdev);
             goto cleanup;
         }
         break;
-- 
1.7.11.2




More information about the libvir-list mailing list