From: "Daniel P. Berrange" <berrange(a)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(a)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