VirtualBox

Changeset 63016 in vbox


Ignore:
Timestamp:
Aug 4, 2016 10:47:52 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109628
Message:

Devices: warnings (debug builds)

Location:
trunk/src/VBox/Devices
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchHda.cpp

    r62974 r63016  
    51905190 */
    51915191static DECLCALLBACK(size_t) hdaDbgFmtBDLE(PFNRTSTROUTPUT pfnOutput, void *pvArgOutput,
    5192                                            const char *pszType, void const *pvValue,
    5193                                            int cchWidth, int cchPrecision, unsigned fFlags,
    5194                                            void *pvUser)
    5195 {
     5192                                          const char *pszType, void const *pvValue,
     5193                                          int cchWidth, int cchPrecision, unsigned fFlags,
     5194                                          void *pvUser)
     5195{
     5196    RT_NOREF(pszType, cchWidth,  cchPrecision, fFlags, pvUser);
    51965197    PHDABDLE pBDLE = (PHDABDLE)pvValue;
    51975198    return RTStrFormat(pfnOutput,  pvArgOutput, NULL, 0,
     
    52095210                                           void *pvUser)
    52105211{
     5212    RT_NOREF(pszType, cchWidth,  cchPrecision, fFlags, pvUser);
    52115213    uint32_t uSDCTL = (uint32_t)(uintptr_t)pvValue;
    52125214    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0,
     
    52315233                                             void *pvUser)
    52325234{
     5235    RT_NOREF(pszType, cchWidth,  cchPrecision, fFlags, pvUser);
    52335236    uint32_t uSDFIFOS = (uint32_t)(uintptr_t)pvValue;
    52345237    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "SDFIFOS(raw:%#x, sdfifos:%RU8 B)", uSDFIFOS, hdaSDFIFOSToBytes(uSDFIFOS));
     
    52435246                                             void *pvUser)
    52445247{
     5248    RT_NOREF(pszType, cchWidth,  cchPrecision, fFlags, pvUser);
    52455249    uint32_t uSDFIFOW = (uint32_t)(uintptr_t)pvValue;
    52465250    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "SDFIFOW(raw: %#0x, sdfifow:%d B)", uSDFIFOW, hdaSDFIFOWToBytes(uSDFIFOW));
     
    52555259                                           void *pvUser)
    52565260{
     5261    RT_NOREF(pszType, cchWidth,  cchPrecision, fFlags, pvUser);
    52575262    uint32_t uSdSts = (uint32_t)(uintptr_t)pvValue;
    52585263    return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0,
     
    52655270}
    52665271
    5267 static int hdaDbgLookupRegByName(PHDASTATE pThis, const char *pszArgs)
     5272static int hdaDbgLookupRegByName(const char *pszArgs)
    52685273{
    52695274    int iReg = 0;
     
    52895294{
    52905295    PHDASTATE pThis = PDMINS_2_DATA(pDevIns, PHDASTATE);
    5291     int iHdaRegisterIndex = hdaDbgLookupRegByName(pThis, pszArgs);
     5296    int iHdaRegisterIndex = hdaDbgLookupRegByName(pszArgs);
    52925297    if (iHdaRegisterIndex != -1)
    52935298        hdaDbgPrintRegister(pThis, pHlp, iHdaRegisterIndex);
     
    53305335                                      HDA_STREAM_REG(pThis, BDPU, iIdx));
    53315336    uint16_t u16LVI     = HDA_STREAM_REG(pThis, LVI, iIdx);
    5332     uint32_t u32CBL     = HDA_STREAM_REG(pThis, CBL, iIdx);
     5337    /*uint32_t u32CBL     = HDA_STREAM_REG(pThis, CBL, iIdx); - unused */
    53335338
    53345339    if (!u64BaseDMA)
     
    53725377static int hdaDbgLookupStrmIdx(PHDASTATE pThis, const char *pszArgs)
    53735378{
     5379    RT_NOREF(pThis, pszArgs);
    53745380    /** @todo Add args parsing. */
    53755381    return -1;
  • trunk/src/VBox/Devices/Audio/DevIchHdaCodec.cpp

    r62991 r63016  
    29372937static DECLCALLBACK(void) codecDbgListNodes(PHDACODEC pThis, PCDBGFINFOHLP pHlp, const char *pszArgs)
    29382938{
     2939    RT_NOREF(pszArgs);
    29392940    pHlp->pfnPrintf(pHlp, "HDA LINK / INPUTS\n");
    29402941
     
    29602961static DECLCALLBACK(void) codecDbgSelector(PHDACODEC pThis, PCDBGFINFOHLP pHlp, const char *pszArgs)
    29612962{
    2962 
     2963    RT_NOREF(pThis, pHlp, pszArgs);
    29632964}
    29642965#endif
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r62965 r63016  
    12081208
    12091209#ifdef IN_RING3
    1210 static void efiVBoxDbgScript(PDEVEFI pThis, const char *pszFormat, ...)
     1210static void efiVBoxDbgScript(const char *pszFormat, ...)
    12111211{
    12121212# ifdef DEVEFI_WITH_VBOXDBG_SCRIPT
     
    12221222    }
    12231223# else
    1224     RT_NOREF(pThis, pszFormat);
     1224    RT_NOREF(pszFormat);
    12251225# endif
    12261226}
     
    12701270                                pThis->ImageEvt.offName - 4, pThis->ImageEvt.szName, pThis->ImageEvt.uAddr0, pThis->ImageEvt.cb0));
    12711271                        if (pThis->ImageEvt.offName > 4)
    1272                             efiVBoxDbgScript(pThis, "loadimage32 '%.*s.efi' %#llx\n",
     1272                            efiVBoxDbgScript("loadimage32 '%.*s.efi' %#llx\n",
    12731273                                             pThis->ImageEvt.offName - 4, pThis->ImageEvt.szName, pThis->ImageEvt.uAddr0);
    12741274                        break;
     
    12771277                                pThis->ImageEvt.offName - 4, pThis->ImageEvt.szName, pThis->ImageEvt.uAddr0, pThis->ImageEvt.cb0));
    12781278                        if (pThis->ImageEvt.offName > 4)
    1279                             efiVBoxDbgScript(pThis, "loadimage64 '%.*s.efi' %#llx\n",
     1279                            efiVBoxDbgScript("loadimage64 '%.*s.efi' %#llx\n",
    12801280                                             pThis->ImageEvt.offName - 4, pThis->ImageEvt.szName, pThis->ImageEvt.uAddr0);
    12811281                        break;
     
    12881288                                pThis->ImageEvt.uAddr0, pThis->ImageEvt.cb0));
    12891289                        if (pThis->ImageEvt.offName > 4)
    1290                             efiVBoxDbgScript(pThis, "unload '%.*s.efi'\n",
     1290                            efiVBoxDbgScript("unload '%.*s.efi'\n",
    12911291                                             pThis->ImageEvt.offName - 4 - pThis->ImageEvt.offNameLastComponent,
    12921292                                             &pThis->ImageEvt.szName[pThis->ImageEvt.offNameLastComponent]);
  • trunk/src/VBox/Devices/Network/lwip-new/vbox/include/lwip-log.h

    r55980 r63016  
    2323 * ends up as RT's level4.  Non-default levels are currently not used
    2424 * much in lwip sources, so enable l4 to get the logs.
     25 *
     26 * Caveat:  Slight snag.  The LOG_GROUP_LWIP_XXXX are enum values and
     27 *          the  lwIP XXXX_DEBUG macros are used in \#if XXXX_DEBUG
     28 *          tests around the place.  This make MSC raise complaint
     29 *          C4668, that e.g. 'LOG_GROUP_LWIP_IP4' is not defined as a
     30 *          preprocessor macro and therefore placed with '0'.  However,
     31 *          that works just fine because we or LWIP_DB_ON so the test
     32 *          is true despite the warning. Thus the pragma below
    2533 */
     34# ifdef _MSC_VER
     35#  pragma warning(disable:4668)
     36# endif
    2637
    27 #define LWIP_DEBUGF_LOG_GROUP_SHIFT 8
    28 #define LWIP_DEBUGF_LOG_GROUP(_g) \
    29     (((_g) << LWIP_DEBUGF_LOG_GROUP_SHIFT) | LWIP_DBG_ON)
     38# define LWIP_DEBUGF_LOG_GROUP_SHIFT 8
     39# define LWIP_DEBUGF_LOG_GROUP(_g) \
     40     (((_g) << LWIP_DEBUGF_LOG_GROUP_SHIFT) | LWIP_DBG_ON)
    3041
    31 #define API_LIB_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_API_LIB)
    32 #define API_MSG_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_API_MSG)
    33 #define ETHARP_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_ETHARP)
    34 #define ICMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_ICMP)
    35 #define IGMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IGMP)
    36 #define INET_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_INET)
    37 #define IP_DEBUG         LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP4)
    38 #define IP_REASS_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP4_REASS)
    39 #define IP6_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP6)
    40 #define MEM_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_MEM)
    41 #define MEMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_MEMP)
    42 #define NETIF_DEBUG      LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_NETIF)
    43 #define PBUF_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_PBUF)
    44 #define RAW_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_RAW)
    45 #define SOCKETS_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_SOCKETS)
    46 #define SYS_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_SYS)
    47 #define TCP_CWND_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_CWND)
    48 #define TCP_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP)
    49 #define TCP_FR_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_FR)
    50 #define TCP_INPUT_DEBUG  LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_INPUT)
    51 #define TCP_OUTPUT_DEBUG LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_OUTPUT)
    52 #define TCP_QLEN_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_QLEN)
    53 #define TCP_RST_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_RST)
    54 #define TCP_RTO_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_RTO)
    55 #define TCP_WND_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_WND)
    56 #define TCPIP_DEBUG      LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCPIP)
    57 #define TIMERS_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TIMERS)
    58 #define UDP_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_UDP)
     42# define API_LIB_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_API_LIB)
     43# define API_MSG_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_API_MSG)
     44# define ETHARP_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_ETHARP)
     45# define ICMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_ICMP)
     46# define IGMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IGMP)
     47# define INET_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_INET)
     48# define IP_DEBUG         LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP4)
     49# define IP_REASS_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP4_REASS)
     50# define IP6_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_IP6)
     51# define MEM_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_MEM)
     52# define MEMP_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_MEMP)
     53# define NETIF_DEBUG      LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_NETIF)
     54# define PBUF_DEBUG       LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_PBUF)
     55# define RAW_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_RAW)
     56# define SOCKETS_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_SOCKETS)
     57# define SYS_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_SYS)
     58# define TCP_CWND_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_CWND)
     59# define TCP_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP)
     60# define TCP_FR_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_FR)
     61# define TCP_INPUT_DEBUG  LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_INPUT)
     62# define TCP_OUTPUT_DEBUG LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_OUTPUT)
     63# define TCP_QLEN_DEBUG   LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_QLEN)
     64# define TCP_RST_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_RST)
     65# define TCP_RTO_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_RTO)
     66# define TCP_WND_DEBUG    LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCP_WND)
     67# define TCPIP_DEBUG      LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TCPIP)
     68# define TIMERS_DEBUG     LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_TIMERS)
     69# define UDP_DEBUG        LWIP_DEBUGF_LOG_GROUP(LOG_GROUP_LWIP_UDP)
    5970
    6071/*
     
    6374 * log groups defined for them currently.
    6475 */
    65 #undef AUTOIP_DEBUG
    66 #undef DHCP_DEBUG
    67 #undef DNS_DEBUG
    68 #undef PPP_DEBUG
    69 #undef SLIP_DEBUG
    70 #undef SNMP_MIB_DEBUG
    71 #undef SNMP_MSG_DEBUG
     76# undef AUTOIP_DEBUG
     77# undef DHCP_DEBUG
     78# undef DNS_DEBUG
     79# undef PPP_DEBUG
     80# undef SLIP_DEBUG
     81# undef SNMP_MIB_DEBUG
     82# undef SNMP_MSG_DEBUG
    7283
    73 #ifdef LOG_ENABLED
     84# ifdef LOG_ENABLED
    7485
    75 # define LWIP_DEBUGF(_when, _args) \
    76     do { \
    77         const VBOX_LOGGROUP _group = (_when) >> LWIP_DEBUGF_LOG_GROUP_SHIFT; \
    78         if (_group >= LOG_GROUP_DEFAULT) { \
    79             /* severe => l1; serious => l2; warning => l3; default => l4 */ \
    80             const unsigned int _level = 1U << (LWIP_DBG_MASK_LEVEL + 1 - ((_when) & LWIP_DBG_MASK_LEVEL)); \
    81             LogIt(_level, _group, _args);  \
    82         } \
    83     } while (0)
     86#  define LWIP_DEBUGF(_when, _args) \
     87     do { \
     88         const VBOX_LOGGROUP _group = (_when) >> LWIP_DEBUGF_LOG_GROUP_SHIFT; \
     89         if (_group >= LOG_GROUP_DEFAULT) { \
     90             /* severe => l1; serious => l2; warning => l3; default => l4 */ \
     91             const unsigned int _level = 1U << (LWIP_DBG_MASK_LEVEL + 1 - ((_when) & LWIP_DBG_MASK_LEVEL)); \
     92             LogIt(_level, _group, _args);  \
     93         } \
     94     } while (0)
    8495
    85 #else  /* !LOG_ENABLED */
     96# else  /* !LOG_ENABLED */
    8697
    87 # define LWIP_DEBUGF(_when, _args) do { } while (0)
     98#  define LWIP_DEBUGF(_when, _args) do { } while (0)
    8899
    89 #endif /* !LOG_ENABLED */
     100# endif /* !LOG_ENABLED */
    90101
    91102#endif /* LWIP_DEBUG */
  • trunk/src/VBox/Devices/Network/slirp/ip_icmp.c

    r63012 r63016  
    436436    /* int code; */
    437437
    438     LogFlowFunc(("ENTER: m = %lx, m_len = %d\n", (long)m, m ? m->m_len : 0));
     438    LogFlowFunc(("ENTER: m = %p, m_len = %d\n", m, m ? m->m_len : 0));
    439439
    440440    icmpstat.icps_received++;
  • trunk/src/VBox/Devices/Network/slirp/ip_input.c

    r62511 r63016  
    9898    STAM_PROFILE_START(&pData->StatIP_input, a);
    9999
    100     LogFlowFunc(("ENTER: m = %lx\n", (long)m));
     100    LogFlowFunc(("ENTER: m = %p\n", m));
    101101    ip = mtod(m, struct ip *);
    102102    Log2(("ip_dst=%RTnaipv4(len:%d) m_len = %d\n", ip->ip_dst, RT_N2H_U16(ip->ip_len), m->m_len));
  • trunk/src/VBox/Devices/Network/slirp/ip_output.c

    r63012 r63016  
    129129
    130130#ifdef LOG_ENABLED
    131     LogFlowFunc(("ip_output: so = %R[natsock], m0 = %lx\n", so, (long)m0));
     131    LogFlowFunc(("ip_output: so = %R[natsock], m0 = %p\n", so, m0));
    132132#else
    133133    NOREF(so);
  • trunk/src/VBox/Devices/Network/slirp/sbuf.c

    r63012 r63016  
    113113
    114114    STAM_PROFILE_START(&pData->StatIOSBAppend_pf, a);
    115     LogFlow(("sbappend: so = %lx, m = %lx, m->m_len = %d\n", (long)so, (long)m, m ? m->m_len : 0));
     115    LogFlow(("sbappend: so = %p, m = %p, m->m_len = %d\n", so, m, m ? m->m_len : 0));
    116116
    117117    STAM_COUNTER_INC(&pData->StatIOSBAppend);
  • trunk/src/VBox/Devices/Network/slirp/socket.c

    r63013 r63016  
    640640        if (ret > 0)
    641641            nn += ret;
    642         STAM_STATS({
    643             if (ret > 0 && ret != iov[1].iov_len)
    644             {
    645                 STAM_COUNTER_INC(&pData->StatIOWrite_rest);
    646                 STAM_COUNTER_ADD(&pData->StatIOWrite_rest_bytes, (iov[1].iov_len - ret));
    647             }
    648         });
     642# ifdef VBOX_WITH_STATISTICS
     643        if (ret > 0 && ret != (ssize_t)iov[1].iov_len)
     644        {
     645            STAM_COUNTER_INC(&pData->StatIOWrite_rest);
     646            STAM_COUNTER_ADD(&pData->StatIOWrite_rest_bytes, (iov[1].iov_len - ret));
     647        }
     648#endif
    649649    }
    650650    Log2(("%s: wrote(2) nn = %d bytes\n", RT_GCC_EXTENSION __PRETTY_FUNCTION__, nn));
     
    679679sorecvfrom(PNATState pData, struct socket *so)
    680680{
    681     LogFlowFunc(("sorecvfrom: so = %lx\n", (long)so));
     681    LogFlowFunc(("sorecvfrom: so = %p\n", so));
    682682
    683683#ifdef RT_OS_WINDOWS
     
    840840    int mlen;
    841841
    842     LogFlowFunc(("sosendto: so = %R[natsock], m = %lx\n", so, (long)m));
     842    LogFlowFunc(("sosendto: so = %R[natsock], m = %p\n", so, m));
    843843
    844844    memset(&addr, 0, sizeof(struct sockaddr));
  • trunk/src/VBox/Devices/Network/slirp/tcp_input.c

    r63013 r63016  
    309309    STAM_PROFILE_START(&pData->StatTCP_input, counter_input);
    310310
    311     LogFlow(("tcp_input: m = %8lx, iphlen = %2d, inso = %R[natsock]\n",
    312              (long)m, iphlen, inso));
     311    LogFlow(("tcp_input: m = %p, iphlen = %2d, inso = %R[natsock]\n", m, iphlen, inso));
    313312
    314313    if (inso != NULL)
     
    12581257                {
    12591258                    tcpstat.tcps_rcvdupack++;
    1260                     Log2((" dup ack  m = %lx, so = %lx\n", (long)m, (long)so));
     1259                    Log2((" dup ack  m = %p, so = %p\n", m, so));
    12611260                    /*
    12621261                     * If we have outstanding data (other than
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r63013 r63016  
    127127    register int tlen;
    128128
    129     LogFlowFunc(("ENTER: tp = %R[tcpcb793], ti = %lx, m = %lx, ack = %u, seq = %u, flags = %x\n",
    130                  tp, (long)ti, (long)m, ack, seq, flags));
     129    LogFlowFunc(("ENTER: tp = %R[tcpcb793], ti = %p, m = %p, ack = %u, seq = %u, flags = %x\n", tp, ti, m, ack, seq, flags));
    131130
    132131    if (m == 0)
  • trunk/src/VBox/Devices/Network/slirp/udp.c

    r63013 r63016  
    123123     */
    124124    len = RT_N2H_U16((u_int16_t)uh->uh_ulen);
    125     Assert((ip->ip_len + iphlen == m_length(m, NULL)));
     125    Assert(ip->ip_len + iphlen == (ssize_t)m_length(m, NULL));
    126126
    127127    if (ip->ip_len != len)
     
    472472#endif
    473473    Assert(so->so_type == IPPROTO_UDP);
    474     LogFlowFunc(("ENTER: so = %R[natsock], m = %p, saddr = %RTnaipv4\n",
    475                  so, (long)m, addr->sin_addr.s_addr));
     474    LogFlowFunc(("ENTER: so = %R[natsock], m = %p, saddr = %RTnaipv4\n", so, m, addr->sin_addr.s_addr));
    476475
    477476    if (so->so_laddr.s_addr == INADDR_ANY)
  • trunk/src/VBox/Devices/Storage/Debug.cpp

    r62506 r63016  
    958958 * Log the write parameters mode page into a given buffer.
    959959 */
    960 static int scsiLogWriteParamsModePage(char *pszBuffer, size_t cchBuffer,
    961                                       uint8_t *pbModePage, size_t cbModePage)
     960static int scsiLogWriteParamsModePage(char *pszBuffer, size_t cchBuffer, uint8_t *pbModePage, size_t cbModePage)
    962961{
     962    RT_NOREF(cbModePage);
    963963    size_t cch = 0;
    964964    const char *pcsz = NULL;
     
    11201120 * @param  cbCueSheet    Size of the cue sheet buffer in bytes.
    11211121 */
    1122 int SCSILogCueSheet(char *pszBuffer, size_t cchBuffer, uint8_t *pbCueSheet,
    1123                     size_t cbCueSheet)
     1122int SCSILogCueSheet(char *pszBuffer, size_t cchBuffer, uint8_t *pbCueSheet, size_t cbCueSheet)
    11241123{
    11251124    int rc = VINF_SUCCESS;
    11261125    size_t cch = 0;
    1127     unsigned cCueSheetEntries = cbCueSheet / 8;
     1126    size_t cCueSheetEntries = cbCueSheet / 8;
    11281127
    11291128    AssertReturn(cbCueSheet % 8 == 0, VERR_INVALID_PARAMETER);
    11301129
    1131     for (unsigned i = 0; i < cCueSheetEntries; i++)
     1130    for (size_t i = 0; i < cCueSheetEntries; i++)
    11321131    {
    11331132        cch = RTStrPrintf(pszBuffer, cchBuffer,
  • trunk/src/VBox/Devices/USB/DevOHCI.cpp

    r62956 r63016  
    16871687DECLINLINE(void) ohciDumpITdQueueCore(POHCI pThis, uint32_t GCPhysHead, uint32_t GCPhysTail, bool fFull)
    16881688{
     1689    RT_NOREF(fFull);
    16891690    uint32_t GCPhys = GCPhysHead;
    16901691    int cMax = 100;
     
    17241725DECLINLINE(void) ohciDumpEdList(POHCI pThis, uint32_t GCPhysHead, const char *pszMsg, bool fTDs)
    17251726{
     1727    RT_NOREF(fTDs);
    17261728    uint32_t GCPhys = GCPhysHead;
    17271729    if (pszMsg)
     
    17651767        Assert(GCPhys != GCPhysHead);
    17661768    }
    1767     Log4(("\n"));
     1769    /* not reached */
    17681770}
    17691771
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r62891 r63016  
    22722272 *
    22732273 * @returns VBox status code that the guest should see.
    2274  * @param   pThis           The VMMDev instance data.
    2275  * @param   pReqHdr         The header of the request to handle.
    2276  */
    2277 static int vmmdevReqHandler_LogString(PVMMDEV pThis, VMMDevRequestHeader *pReqHdr)
     2274 * @param   pReqHdr         The header of the request to handle.
     2275 */
     2276static int vmmdevReqHandler_LogString(VMMDevRequestHeader *pReqHdr)
    22782277{
    22792278    VMMDevReqLogString *pReq = (VMMDevReqLogString *)pReqHdr;
     
    27192718#ifdef DEBUG
    27202719        case VMMDevReq_LogString:
    2721             pReqHdr->rc = vmmdevReqHandler_LogString(pThis, pReqHdr);
     2720            pReqHdr->rc = vmmdevReqHandler_LogString(pReqHdr);
    27222721            break;
    27232722#endif
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