VirtualBox

Changeset 56592 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 23, 2015 8:37:03 AM (9 years ago)
Author:
vboxsync
Message:

Network/Win: Replace FUNCTION macro with literal strings to improve compiler compatibility.

Location:
trunk/src/VBox/HostDrivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp

    r56293 r56592  
    173173    PVBOXNETADP_ADAPTER pAdapter = NULL;
    174174
    175     LogFlow(("==>"__FUNCTION__": adapter handle=%p\n", hAdapter));
     175    LogFlow(("==>vboxNetAdpWinAllocAdapter: adapter handle=%p\n", hAdapter));
    176176
    177177    *ppAdapter = NULL;
     
    184184    {
    185185        Status = NDIS_STATUS_RESOURCES;
    186         Log((__FUNCTION__": Out of memory while allocating adapter context (size=%d)\n", sizeof(VBOXNETADP_ADAPTER)));
     186        Log(("vboxNetAdpWinAllocAdapter: Out of memory while allocating adapter context (size=%d)\n", sizeof(VBOXNETADP_ADAPTER)));
    187187    }
    188188    else
     
    205205        *ppAdapter = pAdapter;
    206206    }
    207     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     207    LogFlow(("<==vboxNetAdpWinAllocAdapter: status=0x%x\n", Status));
    208208    return Status;
    209209}
     
    227227    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    228228
    229     LogFlow(("==>"__FUNCTION__": miniport=0x%x\n", NdisMiniportHandle));
     229    LogFlow(("==>vboxNetAdpWinInitializeEx: miniport=0x%x\n", NdisMiniportHandle));
    230230
    231231    do
     
    237237        if (Status != NDIS_STATUS_SUCCESS)
    238238        {
    239             Log((__FUNCTION__": Failed to allocate the adapter context with 0x%x\n", Status));
     239            Log(("vboxNetAdpWinInitializeEx: Failed to allocate the adapter context with 0x%x\n", Status));
    240240            break;
    241241        }
     
    253253        if (Status != NDIS_STATUS_SUCCESS)
    254254        {
    255             Log((__FUNCTION__": NdisMSetMiniportAttributes(registration) failed with 0x%x\n", Status));
     255            Log(("vboxNetAdpWinInitializeEx: NdisMSetMiniportAttributes(registration) failed with 0x%x\n", Status));
    256256            break;
    257257        }
     
    305305        if (Status != NDIS_STATUS_SUCCESS)
    306306        {
    307             Log((__FUNCTION__": NdisMSetMiniportAttributes(general) failed with 0x%x\n", Status));
     307            Log(("vboxNetAdpWinInitializeEx: NdisMSetMiniportAttributes(general) failed with 0x%x\n", Status));
    308308            break;
    309309        }
     
    316316    }
    317317
    318     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     318    LogFlow(("<==vboxNetAdpWinInitializeEx: status=0x%x\n", Status));
    319319    return Status;
    320320}
     
    324324{
    325325    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    326     LogFlow(("==>"__FUNCTION__"\n"));
     326    LogFlow(("==>vboxNetAdpWinHaltEx\n"));
    327327    // TODO: Stop something?
    328     LogFlow(("<=="__FUNCTION__"\n"));
     328    LogFlow(("<==vboxNetAdpWinHaltEx\n"));
    329329}
    330330
     
    333333{
    334334    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    335     LogFlow(("==>"__FUNCTION__"\n"));
    336     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     335    LogFlow(("==>vboxNetAdpWinPause\n"));
     336    LogFlow(("<==vboxNetAdpWinPause: status=0x%x\n", Status));
    337337    return Status;
    338338}
     
    342342{
    343343    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    344     LogFlow(("==>"__FUNCTION__"\n"));
    345     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     344    LogFlow(("==>vboxNetAdpWinRestart\n"));
     345    LogFlow(("<==vboxNetAdpWinRestart: status=0x%x\n", Status));
    346346    return Status;
    347347}
     
    353353    struct _NDIS_OID_REQUEST::_REQUEST_DATA::_QUERY *pQuery = &pRequest->DATA.QUERY_INFORMATION;
    354354
    355     LogFlow(("==>"__FUNCTION__"\n"));
     355    LogFlow(("==>vboxNetAdpWinOidRqQuery\n"));
    356356
    357357    uint64_t u64Tmp = 0;
     
    455455    }
    456456
    457     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     457    LogFlow(("<==vboxNetAdpWinOidRqQuery: status=0x%x\n", Status));
    458458    return Status;
    459459}
     
    465465    struct _NDIS_OID_REQUEST::_REQUEST_DATA::_SET *pSet = &pRequest->DATA.SET_INFORMATION;
    466466
    467     LogFlow(("==>"__FUNCTION__"\n"));
     467    LogFlow(("==>vboxNetAdpWinOidRqSet\n"));
    468468
    469469    switch (pSet->Oid)
     
    514514    }
    515515
    516     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     516    LogFlow(("<==vboxNetAdpWinOidRqSet: status=0x%x\n", Status));
    517517    return Status;
    518518}
     
    523523    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    524524    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    525     LogFlow(("==>"__FUNCTION__"\n"));
     525    LogFlow(("==>vboxNetAdpWinOidRequest\n"));
    526526    vboxNetCmnWinDumpOidRequest(__FUNCTION__, NdisRequest);
    527527
     
    547547            break;
    548548    }
    549     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     549    LogFlow(("<==vboxNetAdpWinOidRequest: status=0x%x\n", Status));
    550550    return Status;
    551551}
     
    557557{
    558558    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    559     LogFlow(("==>"__FUNCTION__"\n"));
     559    LogFlow(("==>vboxNetAdpWinSendNetBufferLists\n"));
    560560    PNET_BUFFER_LIST pNbl = NetBufferLists;
    561561    for (pNbl = NetBufferLists; pNbl; pNbl = NET_BUFFER_LIST_NEXT_NBL(pNbl))
     
    564564                                    (SendFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL) ?
    565565                                    NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0);
    566     LogFlow(("<=="__FUNCTION__"\n"));
     566    LogFlow(("<==vboxNetAdpWinSendNetBufferLists\n"));
    567567}
    568568
     
    572572{
    573573    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    574     LogFlow(("==>"__FUNCTION__"\n"));
    575     Log((__FUNCTION__": We should not be here!\n"));
    576     LogFlow(("<=="__FUNCTION__"\n"));
     574    LogFlow(("==>vboxNetAdpWinReturnNetBufferLists\n"));
     575    Log(("vboxNetAdpWinReturnNetBufferLists: We should not be here!\n"));
     576    LogFlow(("<==vboxNetAdpWinReturnNetBufferLists\n"));
    577577}
    578578
     
    581581{
    582582    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    583     LogFlow(("==>"__FUNCTION__"\n"));
    584     Log((__FUNCTION__": We should not be here!\n"));
    585     LogFlow(("<=="__FUNCTION__"\n"));
     583    LogFlow(("==>vboxNetAdpWinCancelSend\n"));
     584    Log(("vboxNetAdpWinCancelSend: We should not be here!\n"));
     585    LogFlow(("<==vboxNetAdpWinCancelSend\n"));
    586586}
    587587
     
    590590{
    591591    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    592     LogFlow(("==>"__FUNCTION__"\n"));
    593     LogFlow(("<=="__FUNCTION__" return false\n"));
     592    LogFlow(("==>vboxNetAdpWinCheckForHangEx\n"));
     593    LogFlow(("<==vboxNetAdpWinCheckForHangEx return false\n"));
    594594    return FALSE;
    595595}
     
    599599{
    600600    NDIS_STATUS Status = NDIS_STATUS_SUCCESS;
    601     LogFlow(("==>"__FUNCTION__"\n"));
    602     LogFlow(("<=="__FUNCTION__": status=0x%x\n", Status));
     601    LogFlow(("==>vboxNetAdpWinResetEx\n"));
     602    LogFlow(("<==vboxNetAdpWinResetEx: status=0x%x\n", Status));
    603603    return Status;
    604604}
     
    608608{
    609609    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    610     LogFlow(("==>"__FUNCTION__"\n"));
    611     Log((__FUNCTION__": PnP event=%d\n", NetDevicePnPEvent->DevicePnPEvent));
    612     LogFlow(("<=="__FUNCTION__"\n"));
     610    LogFlow(("==>vboxNetAdpWinDevicePnPEventNotify\n"));
     611    Log(("vboxNetAdpWinDevicePnPEventNotify: PnP event=%d\n", NetDevicePnPEvent->DevicePnPEvent));
     612    LogFlow(("<==vboxNetAdpWinDevicePnPEventNotify\n"));
    613613}
    614614
     
    618618{
    619619    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    620     LogFlow(("==>"__FUNCTION__"\n"));
    621     Log((__FUNCTION__": action=%d\n", ShutdownAction));
    622     LogFlow(("<=="__FUNCTION__"\n"));
     620    LogFlow(("==>vboxNetAdpWinShutdownEx\n"));
     621    Log(("vboxNetAdpWinShutdownEx: action=%d\n", ShutdownAction));
     622    LogFlow(("<==vboxNetAdpWinShutdownEx\n"));
    623623}
    624624
     
    627627{
    628628    PVBOXNETADP_ADAPTER pAdapter = (PVBOXNETADP_ADAPTER)MiniportAdapterContext;
    629     LogFlow(("==>"__FUNCTION__"\n"));
    630     Log((__FUNCTION__": req id=%p\n", RequestId));
    631     LogFlow(("<=="__FUNCTION__"\n"));
     629    LogFlow(("==>vboxNetAdpWinCancelOidRequest\n"));
     630    Log(("vboxNetAdpWinCancelOidRequest: req id=%p\n", RequestId));
     631    LogFlow(("<==vboxNetAdpWinCancelOidRequest\n"));
    632632}
    633633
     
    636636DECLHIDDEN(VOID) vboxNetAdpWinUnload(IN PDRIVER_OBJECT DriverObject)
    637637{
    638     LogFlow(("==>"__FUNCTION__"\n"));
     638    LogFlow(("==>vboxNetAdpWinUnload\n"));
    639639    //vboxNetAdpWinDevDestroy(&g_VBoxNetAdpGlobals);
    640640    if (g_VBoxNetAdpGlobals.hMiniportDriver)
    641641        NdisMDeregisterMiniportDriver(g_VBoxNetAdpGlobals.hMiniportDriver);
    642642    //NdisFreeSpinLock(&g_VBoxNetAdpGlobals.Lock);
    643     LogFlow(("<=="__FUNCTION__"\n"));
     643    LogFlow(("<==vboxNetAdpWinUnload\n"));
    644644    RTR0Term();
    645645}
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp

    r56591 r56592  
    14741474        if (pPassHead)
    14751475        {
    1476             vboxNetLwfWinDumpPackets(__FUNCTION__": passing down", pPassHead);
     1476            vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: passing down", pPassHead);
    14771477            NdisFSendNetBufferLists(pModule->hFilter, pBufLists, nPort, fFlags);
    14781478        }
    14791479        if (pDropHead)
    14801480        {
    1481             vboxNetLwfWinDumpPackets(__FUNCTION__": consumed", pDropHead);
     1481            vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: consumed", pDropHead);
    14821482            NdisFSendNetBufferListsComplete(pModule->hFilter, pDropHead,
    14831483                                            fFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL ? NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0);
     
    14901490            NET_BUFFER_LIST_STATUS(pList) = NDIS_STATUS_PAUSED;
    14911491        }
    1492         vboxNetLwfWinDumpPackets(__FUNCTION__": consumed", pBufLists);
     1492        vboxNetLwfWinDumpPackets("vboxNetLwfWinSendNetBufferLists: consumed", pBufLists);
    14931493        NdisFSendNetBufferListsComplete(pModule->hFilter, pBufLists,
    14941494                                        fFlags & NDIS_SEND_FLAGS_DISPATCH_LEVEL ? NDIS_SEND_COMPLETE_FLAGS_DISPATCH_LEVEL : 0);
     
    15961596                    PNET_BUFFER_LIST pNext = NET_BUFFER_LIST_NEXT_NBL(pList);
    15971597                    NET_BUFFER_LIST_NEXT_NBL(pList) = NULL; /* Unlink temporarily */
    1598                     vboxNetLwfWinDumpPackets(__FUNCTION__": passing up", pList);
     1598                    vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pList);
    15991599                    NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pList, nPort, nBufLists, fFlags);
    16001600                    NET_BUFFER_LIST_NEXT_NBL(pList) = pNext; /* Restore the link */
     
    16041604            {
    16051605                /* All NBLs must be indicated, do it in bulk. */
    1606                 vboxNetLwfWinDumpPackets(__FUNCTION__": passing up", pBufLists);
     1606                vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pBufLists);
    16071607                NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pBufLists, nPort, nBufLists, fFlags);
    16081608            }
     
    16461646            if (pPassHead)
    16471647            {
    1648                 vboxNetLwfWinDumpPackets(__FUNCTION__": passing up", pPassHead);
     1648                vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: passing up", pPassHead);
    16491649                NdisFIndicateReceiveNetBufferLists(pModule->hFilter, pPassHead, nPort, nPass, fFlags);
    16501650            }
    16511651            if (pDropHead)
    16521652            {
    1653                 vboxNetLwfWinDumpPackets(__FUNCTION__": consumed", pDropHead);
     1653                vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: consumed", pDropHead);
    16541654                NdisFReturnNetBufferLists(pModule->hFilter, pDropHead,
    16551655                                          fFlags & NDIS_RECEIVE_FLAGS_DISPATCH_LEVEL ? NDIS_RETURN_FLAGS_DISPATCH_LEVEL : 0);
     
    16601660    else
    16611661    {
    1662         vboxNetLwfWinDumpPackets(__FUNCTION__": consumed", pBufLists);
     1662        vboxNetLwfWinDumpPackets("vboxNetLwfWinReceiveNetBufferLists: consumed", pBufLists);
    16631663        if ((fFlags & NDIS_RECEIVE_FLAGS_RESOURCES) == 0)
    16641664            NdisFReturnNetBufferLists(pModule->hFilter, pBufLists,
     
    23392339    RTListForEach(&g_VBoxNetLwfGlobals.listModules, pModuleCtx, VBOXNETLWF_MODULE, node)
    23402340    {
    2341         DbgPrint(__FUNCTION__": evaluating module, name=%Z\n", pModuleCtx->strMiniportName);
     2341        DbgPrint("vboxNetFltOsInitInstance: evaluating module, name=%Z\n", pModuleCtx->strMiniportName);
    23422342        if (RtlEqualString(&strInst, &pModuleCtx->strMiniportName, TRUE))
    23432343        {
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