VirtualBox

Changeset 16952 in vbox for trunk


Ignore:
Timestamp:
Feb 19, 2009 3:41:40 PM (16 years ago)
Author:
vboxsync
Message:

NAT: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r16896 r16952  
    169169    if (buf == NULL)
    170170    {
    171         LogRel(("Can't allocate buffer for sending buffer\n"));
     171        LogRel(("NAT: Can't allocate send buffer\n"));
    172172        return VERR_NO_MEMORY;
    173173    }
     
    375375        polls = (struct pollfd *)RTMemAlloc((1 + nFDs) * sizeof(struct pollfd) + sizeof(uint32_t)); /* allocation for all sockets + Management pipe*/
    376376        if (polls == NULL)
    377         {
    378             LogRel(("Can't allocate memory for polling\n"));
    379377            return VERR_NO_MEMORY;
    380         }
    381378
    382379        slirp_select_fill(pThis->pNATState, &nFDs, &polls[1]); /*don't bother Slirp with knowelege about managemant pipe*/
     
    414411        }
    415412        RTMemFree(polls);
    416 # else /* !RT_OS_WINDOWS */
     413# else /* RT_OS_WINDOWS */
    417414        slirp_select_fill(pThis->pNATState, &nFDs);
    418415        ms = slirp_get_timeout_ms(pThis->pNATState);
     
    423420        {
    424421            int error = WSAGetLastError();
    425             LogRel(("WSAWaitForMultipleEvents returned %d (error %d)\n", event, error));
     422            LogRel(("NAT: WSAWaitForMultipleEvents returned %d (error %d)\n", event, error));
    426423            RTAssertReleasePanic();
    427424        }
     
    476473}
    477474
    478 #ifdef VBOX_WITH_SLIRP_MT
     475# ifdef VBOX_WITH_SLIRP_MT
    479476static DECLCALLBACK(int) drvNATAsyncIoGuest(PPDMDRVINS pDrvIns, PPDMTHREAD pThread)
    480477{
     
    495492    return VINF_SUCCESS;
    496493}
    497 #endif
     494# endif /* VBOX_WITH_SLIRP_MT */
    498495
    499496#endif /* VBOX_WITH_SIMPLIFIED_SLIRP_SYNC */
     
    564561    {
    565562        cDroppedPackets++;
    566         LogRel(("NAT: Dropping package (couldn't alloc queue item to)\n"));
     563        LogRel(("NAT: Dropping package (couldn't allocate queue item)\n"));
    567564    }
    568565    RTMemFree((void *)pu8Buf);
     
    892889            if (RT_FAILURE(rc))
    893890            {
    894                 LogRel(("Can't create request queue\n"));
     891                LogRel(("NAT: Can't create request queue\n"));
    895892                return rc;
    896893            }
     
    899896            if (RT_FAILURE(rc))
    900897            {
    901                 LogRel(("Can't create send queue\n"));
     898                LogRel(("NAT: Can't create send queue\n"));
    902899                return rc;
    903900            }
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