VirtualBox

Changeset 46326 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 30, 2013 12:16:53 PM (12 years ago)
Author:
vboxsync
Message:

RT_STR_TUPLE

Location:
trunk/src/VBox/VMM
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r46125 r46326  
    26592659    }
    26602660    else
    2661         cch = pfnOutput(pvArgOutput, "<bad-pgmpage-ptr>", sizeof("<bad-pgmpage-ptr>") - 1);
     2661        cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmpage-ptr>"));
    26622662    NOREF(pszType); NOREF(cchWidth); NOREF(pvUser);
    26632663    return cch;
     
    26812681    }
    26822682    else
    2683         cch = pfnOutput(pvArgOutput, "<bad-pgmramrange-ptr>", sizeof("<bad-pgmramrange-ptr>") - 1);
     2683        cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmramrange-ptr>"));
    26842684    NOREF(pszType); NOREF(cchWidth); NOREF(cchPrecision); NOREF(pvUser); NOREF(fFlags);
    26852685    return cch;
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r45749 r46326  
    9494    }
    9595    if (cCpus == 0)
    96         return pfnOutput(pvArgOutput, "<empty>", sizeof("<empty>") - 1);
     96        return pfnOutput(pvArgOutput, RT_STR_TUPLE("<empty>"));
    9797    if (cCpus == RT_ELEMENTS(pSet->au32Bitmap) * 32)
    98         return pfnOutput(pvArgOutput, "<full>", sizeof("<full>") - 1);
     98        return pfnOutput(pvArgOutput, RT_STR_TUPLE("<full>"));
    9999
    100100    /*
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r44528 r46326  
    545545     * String switch time!
    546546     */
    547     if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))
     547    if (strncmp(pszName, RT_STR_TUPLE("/GVMM/")))
    548548        return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */
    549549    int rc = VINF_SUCCESS;
     
    613613     * String switch time!
    614614     */
    615     if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))
     615    if (strncmp(pszName, RT_STR_TUPLE("/GVMM/")))
    616616        return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */
    617617    int rc = VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r46165 r46326  
    30263026    else
    30273027    {
    3028         if (!strncmp(pszArgs, "verbose", sizeof("verbose") - 1))
     3028        if (!strncmp(pszArgs, RT_STR_TUPLE("verbose")))
    30293029        {
    30303030            pszArgs += 7;
    30313031            *penmType = CPUMDUMPTYPE_VERBOSE;
    30323032        }
    3033         else if (!strncmp(pszArgs, "terse", sizeof("terse") - 1))
     3033        else if (!strncmp(pszArgs, RT_STR_TUPLE("terse")))
    30343034        {
    30353035            pszArgs += 5;
    30363036            *penmType = CPUMDUMPTYPE_TERSE;
    30373037        }
    3038         else if (!strncmp(pszArgs, "default", sizeof("default") - 1))
     3038        else if (!strncmp(pszArgs, RT_STR_TUPLE("default")))
    30393039        {
    30403040            pszArgs += 7;
  • trunk/src/VBox/VMM/VMMR3/DBGFLog.cpp

    r44528 r46326  
    4242    PRTLOGGER   pLogger;
    4343    const char *psz = *ppsz;
    44     if (!strncmp(psz, "release:", sizeof("release:") - 1))
     44    if (!strncmp(psz, RT_STR_TUPLE("release:")))
    4545    {
    4646        *ppsz += sizeof("release:") - 1;
     
    4949    else
    5050    {
    51         if (!strncmp(psz, "debug:", sizeof("debug:") - 1))
     51        if (!strncmp(psz, RT_STR_TUPLE("debug:")))
    5252            *ppsz += sizeof("debug:") - 1;
    5353        pLogger = RTLogDefaultInstance();
  • trunk/src/VBox/VMM/VMMR3/FTM.cpp

    r44529 r46326  
    198198static int ftmR3TcpWriteACK(PVM pVM)
    199199{
    200     int rc = RTTcpWrite(pVM->ftm.s.hSocket, "ACK\n", sizeof("ACK\n") - 1);
     200    int rc = RTTcpWrite(pVM->ftm.s.hSocket, RT_STR_TUPLE("ACK\n"));
    201201    if (RT_FAILURE(rc))
    202202    {
     
    286286        return VINF_SUCCESS;
    287287
    288     if (!strncmp(szMsg, "NACK=", sizeof("NACK=") - 1))
     288    if (!strncmp(szMsg, RT_STR_TUPLE("NACK=")))
    289289    {
    290290        char *pszMsgText = strchr(szMsg, ';');
     
    334334static int ftmR3TcpSubmitCommand(PVM pVM, const char *pszCommand, bool fWaitForAck = true)
    335335{
    336     int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, pszCommand, strlen(pszCommand), "\n", sizeof("\n") - 1);
     336    int rc = RTTcpSgWriteL(pVM->ftm.s.hSocket, 2, pszCommand, strlen(pszCommand), RT_STR_TUPLE("\n"));
    337337    if (RT_FAILURE(rc))
    338338        return rc;
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