VirtualBox

Ignore:
Timestamp:
Dec 8, 2015 12:45:56 PM (9 years ago)
Author:
vboxsync
Message:

Main/Network: excessive release log messages removed (bugref:7973)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/NetIf-win.cpp

    r59033 r59056  
    14741474
    14751475
    1476 #define netIfLog LogRel
     1476#define netIfLog Log
    14771477
    14781478struct BoundAdapter
     
    14911491
    14921492    if ((hr = pNetCfg->EnumComponents(&GUID_DEVCLASS_NET, &pEnumComponent)) != S_OK)
    1493         netIfLog(("netIfGetUnboundHostOnlyAdapters: failed to enumerate network adapter components (0x%x)\n", hr));
     1493        LogRel(("netIfGetUnboundHostOnlyAdapters: failed to enumerate network adapter components (0x%x)\n", hr));
    14941494    else
    14951495    {
     
    15011501            memset(&adapter, 0, sizeof(adapter));
    15021502            if ((hr = pMiniport->GetDisplayName(&adapter.pName)) != S_OK)
    1503                 netIfLog(("netIfGetUnboundHostOnlyAdapters: failed to get device display name (0x%x)\n", hr));
     1503                LogRel(("netIfGetUnboundHostOnlyAdapters: failed to get device display name (0x%x)\n", hr));
    15041504            else if ((hr = pMiniport->GetDeviceStatus(&uComponentStatus)) != S_OK)
    15051505                netIfLog(("netIfGetUnboundHostOnlyAdapters: failed to get device status (0x%x)\n", hr));
     
    15071507                netIfLog(("netIfGetUnboundHostOnlyAdapters: wrong device status (0x%x)\n", uComponentStatus));
    15081508            else if ((hr = pMiniport->GetId(&adapter.pHwId)) != S_OK)
    1509                 netIfLog(("netIfGetUnboundHostOnlyAdapters: failed to get device id (0x%x)\n", hr));
     1509                LogRel(("netIfGetUnboundHostOnlyAdapters: failed to get device id (0x%x)\n", hr));
    15101510            else if (_wcsnicmp(adapter.pHwId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2))
    15111511                netIfLog(("netIfGetUnboundHostOnlyAdapters: not host-only id = %ls, ignored\n", adapter.pHwId));
    15121512            else if ((hr = pMiniport->GetInstanceGuid(&guid)) != S_OK)
    1513                 netIfLog(("netIfGetUnboundHostOnlyAdapters: failed to get instance id (0x%x)\n", hr));
     1513                LogRel(("netIfGetUnboundHostOnlyAdapters: failed to get instance id (0x%x)\n", hr));
    15141514            else
    15151515            {
     
    15491549    if (hr != S_OK)
    15501550    {
    1551         netIfLog(("netIfGetBoundAdapters: failed to query INetCfg (0x%x)\n", hr));
     1551        LogRel(("netIfGetBoundAdapters: failed to query INetCfg (0x%x)\n", hr));
    15521552        return hr;
    15531553    }
     
    15561556        /* fall back to NDIS5 miniport lookup */
    15571557        && (hr = pNetCfg->FindComponent(L"sun_VBoxNetFlt", &pFilter)))
    1558         netIfLog(("netIfGetBoundAdapters: could not find either 'oracle_VBoxNetLwf' or 'sun_VBoxNetFlt' components (0x%x)\n", hr));
     1558        LogRel(("netIfGetBoundAdapters: could not find either 'oracle_VBoxNetLwf' or 'sun_VBoxNetFlt' components (0x%x)\n", hr));
    15591559    else
    15601560    {
    15611561        INetCfgComponentBindings *pFilterBindings;
    15621562        if ((pFilter->QueryInterface(IID_INetCfgComponentBindings, (PVOID*)&pFilterBindings)) != S_OK)
    1563             netIfLog(("netIfGetBoundAdapters: failed to query INetCfgComponentBindings (0x%x)\n", hr));
     1563            LogRel(("netIfGetBoundAdapters: failed to query INetCfgComponentBindings (0x%x)\n", hr));
    15641564        else
    15651565        {
     
    15671567            INetCfgBindingPath     *pBp;
    15681568            if ((pFilterBindings->EnumBindingPaths(EBP_BELOW, &pEnumBp)) != S_OK)
    1569                 netIfLog(("netIfGetBoundAdapters: failed to enumerate binding paths (0x%x)\n", hr));
     1569                LogRel(("netIfGetBoundAdapters: failed to enumerate binding paths (0x%x)\n", hr));
    15701570            else
    15711571            {
     
    15831583                    }
    15841584                    if ((pBp->EnumBindingInterfaces(&pEnumBi)) != S_OK)
    1585                         netIfLog(("netIfGetBoundAdapters: failed to enumerate binding interfaces (0x%x)\n", hr));
     1585                        LogRel(("netIfGetBoundAdapters: failed to enumerate binding interfaces (0x%x)\n", hr));
    15861586                    else
    15871587                    {
     
    15911591                            INetCfgComponent *pAdapter;
    15921592                            if ((hr = pBi->GetLowerComponent(&pAdapter)) != S_OK)
    1593                                 netIfLog(("netIfGetBoundAdapters: failed to get lower component (0x%x)\n", hr));
     1593                                LogRel(("netIfGetBoundAdapters: failed to get lower component (0x%x)\n", hr));
    15941594                            else
    15951595                            {
    15961596                                LPWSTR pwszName = NULL;
    15971597                                if ((hr = pAdapter->GetDisplayName(&pwszName)) != S_OK)
    1598                                     netIfLog(("netIfGetBoundAdapters: failed to get display name (0x%x)\n", hr));
     1598                                    LogRel(("netIfGetBoundAdapters: failed to get display name (0x%x)\n", hr));
    15991599                                else
    16001600                                {
     
    16181618                                        LPWSTR pwszHwId = NULL;
    16191619                                        if ((hr = pAdapter->GetId(&pwszHwId)) != S_OK)
    1620                                             netIfLog(("netIfGetBoundAdapters: %ls: failed to get hardware id (0x%x)\n",
     1620                                            LogRel(("netIfGetBoundAdapters: %ls: failed to get hardware id (0x%x)\n",
    16211621                                                      pwszName, hr));
    16221622                                        else if (!_wcsnicmp(pwszHwId, L"sun_VBoxNetAdp", sizeof(L"sun_VBoxNetAdp")/2))
    16231623                                            netIfLog(("netIfGetBoundAdapters: host-only adapter %ls, ignored\n", pwszName));
    16241624                                        else if ((hr = pAdapter->GetInstanceGuid(&guid)) != S_OK)
    1625                                             netIfLog(("netIfGetBoundAdapters: %ls: failed to get instance GUID (0x%x)\n",
     1625                                            LogRel(("netIfGetBoundAdapters: %ls: failed to get instance GUID (0x%x)\n",
    16261626                                                      pwszName, hr));
    16271627                                        else
     
    18341834    if (dwRc != NO_ERROR)
    18351835    {
    1836         netIfLog(("NetIfList: GetAdaptersAddresses failed (0x%x)\n", dwRc));
     1836        LogRel(("NetIfList: GetAdaptersAddresses failed (0x%x)\n", dwRc));
    18371837        hr = HRESULT_FROM_WIN32(dwRc);
    18381838    }
     
    18461846#endif
    18471847        if (hr != S_OK)
    1848             netIfLog(("NetIfList: netIfGetBoundAdapters failed (0x%x)\n", hr));
     1848            LogRel(("NetIfList: netIfGetBoundAdapters failed (0x%x)\n", hr));
    18491849        else
    18501850        {
     
    18561856                if (!pszUuid)
    18571857                {
    1858                     netIfLog(("NetIfList: out of memory\n"));
     1858                    LogRel(("NetIfList: out of memory\n"));
    18591859                    break;
    18601860                }
    18611861                size_t len = strlen(pszUuid) - 1;
    18621862                if (pszUuid[0] != '{' || pszUuid[len] != '}')
    1863                     netIfLog(("NetIfList: ignoring invalid GUID %s\n", pAdapter->AdapterName));
     1863                    LogRel(("NetIfList: ignoring invalid GUID %s\n", pAdapter->AdapterName));
    18641864                else
    18651865                {
     
    19051905                int rc = iface->init((*it).pName, enmType, &info);
    19061906                if (FAILED(rc))
    1907                     netIfLog(("NetIfList: HostNetworkInterface::init() -> %Rrc\n", rc));
     1907                    LogRel(("NetIfList: HostNetworkInterface::init() -> %Rrc\n", rc));
    19081908                else
    19091909                {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette