Changeset 57596 in vbox for trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
- Timestamp:
- Sep 2, 2015 1:19:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r57556 r57596 965 965 LogRel(("vboxNetWinAddComponent: collectNetIfInfo() -> %Rrc\n", rc)); 966 966 } 967 Log Rel(("vboxNetWinAddComponent: adding %ls\n", lpszName));967 Log(("vboxNetWinAddComponent: adding %ls\n", lpszName)); 968 968 /* create a new object and add it to the list */ 969 969 ComObjPtr<HostNetworkInterface> iface; … … 1016 1016 hr = pMpNcc->GetDisplayName(&pwszName); 1017 1017 if (hr == S_OK) 1018 Log Rel(("netIfListHostAdapters: %ls\n", pwszName));1018 Log(("netIfListHostAdapters: %ls\n", pwszName)); 1019 1019 else 1020 1020 LogRel(("netIfListHostAdapters: failed to get device display name (0x%x)\n", hr)); … … 1029 1029 if (hr == S_OK) 1030 1030 { 1031 Log Rel(("netIfListHostAdapters: id = %ls\n", pId));1031 Log(("netIfListHostAdapters: id = %ls\n", pId)); 1032 1032 if (!_wcsnicmp(pId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2)) 1033 1033 { … … 1470 1470 int iDefault = getDefaultInterfaceIndex(); 1471 1471 1472 Log Rel(("NetIfList: building the list of interfaces\n"));1472 Log(("NetIfList: building the list of interfaces\n")); 1473 1473 /* we are using the INetCfg API for getting the list of miniports */ 1474 1474 hr = VBoxNetCfgWinQueryINetCfg(&pNc, FALSE, … … 1539 1539 while ((hr = pEnumBp->Next(1, &pBp, NULL)) == S_OK) 1540 1540 { 1541 Log Rel(("NetIfList: fetched INetCfgBindingPath interface\n"));1541 Log(("NetIfList: fetched INetCfgBindingPath interface\n")); 1542 1542 /* S_OK == enabled, S_FALSE == disabled */ 1543 1543 if (pBp->IsEnabled() == S_OK) … … 1553 1553 while ((hr = pEnumBi->Next(1, &pBi, NULL)) == S_OK) 1554 1554 { 1555 Log Rel(("NetIfList: fetched INetCfgBindingInterface interface\n"));1555 Log(("NetIfList: fetched INetCfgBindingInterface interface\n")); 1556 1556 hr = pBi->GetLowerComponent(&pMpNcc); 1557 1557 Assert(hr == S_OK); … … 1562 1562 hr = pMpNcc->GetDisplayName(&pwszName); 1563 1563 if (hr == S_OK) 1564 Log Rel(("NetIfList: got %ls\n", pwszName));1564 Log(("NetIfList: got %ls\n", pwszName)); 1565 1565 else 1566 1566 LogRel(("NetIfList: failed to get device display name (0x%x)\n", hr)); … … 1575 1575 if (hr == S_OK) 1576 1576 { 1577 Log Rel(("NetIfList: fetched network adapter id: %.80ls\n", pId));1577 Log(("NetIfList: fetched network adapter id: %.80ls\n", pId)); 1578 1578 /* 1579 1579 * Host-only interfaces are ignored here and included into the list … … 1672 1672 for (pAdapter = pAddresses; pAdapter; pAdapter = pAdapter->Next) 1673 1673 { 1674 Log Rel(("Enumerating %s\n", pAdapter->AdapterName));1674 Log(("Enumerating %s\n", pAdapter->AdapterName)); 1675 1675 /* Vista+ systems introduced separate type for wireless adapters */ 1676 1676 if (pAdapter->IfType != IF_TYPE_ETHERNET_CSMACD && pAdapter->IfType != IF_TYPE_IEEE80211) … … 1781 1781 ? HostNetworkInterfaceType_HostOnly 1782 1782 : HostNetworkInterfaceType_Bridged; 1783 Log Rel(("Adding %ls as %s\n", pAdapter->Description,1784 1783 Log(("Adding %ls as %s\n", pAdapter->Description, 1784 enmType == HostNetworkInterfaceType_Bridged ? "bridged" : "host-only")); 1785 1785 /* create a new object and add it to the list */ 1786 1786 ComObjPtr<HostNetworkInterface> iface; … … 1797 1797 else 1798 1798 { 1799 LogRel((" vboxNetWinAddComponent: HostNetworkInterface::init() -> %Rrc\n", rc));1799 LogRel(("NetIfList: HostNetworkInterface::init() -> %Rrc\n", rc)); 1800 1800 Assert(0); 1801 1801 }
Note:
See TracChangeset
for help on using the changeset viewer.