Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy(a)virtuozzo.com>
---
src/vz/vz_sdk.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 5a83586..29b31a2 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -3086,6 +3086,7 @@ prlsdkFindNetByMAC(PRL_HANDLE sdkdom, virMacAddrPtr mac)
PRL_HANDLE adapter = PRL_INVALID_HANDLE;
char adapterMac[PRL_MAC_STRING_BUFNAME];
char expectedMac[PRL_MAC_STRING_BUFNAME];
+ char virMac[VIR_MAC_STRING_BUFLEN];
prlsdkFormatMac(mac, expectedMac);
@@ -3107,6 +3108,9 @@ prlsdkFindNetByMAC(PRL_HANDLE sdkdom, virMacAddrPtr mac)
adapter = PRL_INVALID_HANDLE;
}
+ virReportError(VIR_ERR_INTERNAL_ERROR,
+ _("No net with mac '%s'"), virMacAddrFormat(mac,
virMac));
+
cleanup:
PrlHandle_Free(adapter);
return adapter;
--
1.8.3.1