Specify name of target interface with macvlan error

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@redhat.com>
(cherry picked from commit e11daa2b602e69708d86ada8f7167bf68ee102cd)
This commit is contained in:
Daniel P. Berrange 2012-11-23 16:34:10 +00:00 committed by Cole Robinson
parent 1083e4183f
commit 49ed3cd1f6

View File

@ -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;