Re: [PATCH 08/18] vz: give nice report if network device not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



20.04.2016 17:05, Nikolay Shirokovskiy пишет:

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
  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;
ACK

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]