VirtualBox

Ignore:
Timestamp:
Aug 23, 2021 7:08:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146439
Message:

HostDrivers: More VALID_PTR -> RT_VALID_PTR/AssertPtr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r85344 r90804  
    752752    uint64_t NanoTS = RTTimeSystemNanoTS();
    753753    LogFlow(("vboxNetFltDarwinIffDetached: pThis=%p NanoTS=%RU64 (%d)\n",
    754              pThis, NanoTS, VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) :  -1));
     754             pThis, NanoTS, RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) :  -1));
    755755
    756756    Assert(!pThis->fDisconnectedFromHost);
     
    771771
    772772    pIfNet = ASMAtomicUoReadPtrT(&pThis->u.s.pIfNet, ifnet_t);
    773     int cPromisc = VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : - 1;
     773    int cPromisc = RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : - 1;
    774774
    775775    ASMAtomicUoWriteNullPtr(&pThis->u.s.pIfNet);
     
    836836     * Watch out for the interface going online / offline.
    837837     */
    838     if (    VALID_PTR(pThis)
    839         &&  VALID_PTR(pEvMsg)
    840         &&  pEvMsg->vendor_code  == KEV_VENDOR_APPLE
    841         &&  pEvMsg->kev_class    == KEV_NETWORK_CLASS
    842         &&  pEvMsg->kev_subclass == KEV_DL_SUBCLASS)
     838    if (   RT_VALID_PTR(pThis)
     839        && RT_VALID_PTR(pEvMsg)
     840        && pEvMsg->vendor_code  == KEV_VENDOR_APPLE
     841        && pEvMsg->kev_class    == KEV_NETWORK_CLASS
     842        && pEvMsg->kev_subclass == KEV_DL_SUBCLASS)
    843843    {
    844844        if (pThis->u.s.pIfNet    == pIfNet)
     
    881881        }
    882882        else
    883             Log(("vboxNetFltDarwinIffEvent: pThis->u.s.pIfNet=%p pIfNet=%p (%d)\n", pThis->u.s.pIfNet, pIfNet, VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1));
    884     }
    885     else if (VALID_PTR(pEvMsg))
     883            Log(("vboxNetFltDarwinIffEvent: pThis->u.s.pIfNet=%p pIfNet=%p (%d)\n", pThis->u.s.pIfNet, pIfNet, RT_VALID_PTR(pIfNet) ? VBOX_GET_PCOUNT(pIfNet) : -1));
     884    }
     885    else if (RT_VALID_PTR(pEvMsg))
    886886        Log(("vboxNetFltDarwinIffEvent: vendor_code=%#x kev_class=%#x kev_subclass=%#x event_code=%#x\n",
    887887             pEvMsg->vendor_code, pEvMsg->kev_class, pEvMsg->kev_subclass, pEvMsg->event_code));
Note: See TracChangeset for help on using the changeset viewer.

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