Changeset 46326 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 30, 2013 12:16:53 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r46125 r46326 2659 2659 } 2660 2660 else 2661 cch = pfnOutput(pvArgOutput, "<bad-pgmpage-ptr>", sizeof("<bad-pgmpage-ptr>") - 1);2661 cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmpage-ptr>")); 2662 2662 NOREF(pszType); NOREF(cchWidth); NOREF(pvUser); 2663 2663 return cch; … … 2681 2681 } 2682 2682 else 2683 cch = pfnOutput(pvArgOutput, "<bad-pgmramrange-ptr>", sizeof("<bad-pgmramrange-ptr>") - 1);2683 cch = pfnOutput(pvArgOutput, RT_STR_TUPLE("<bad-pgmramrange-ptr>")); 2684 2684 NOREF(pszType); NOREF(cchWidth); NOREF(cchPrecision); NOREF(pvUser); NOREF(fFlags); 2685 2685 return cch; -
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r45749 r46326 94 94 } 95 95 if (cCpus == 0) 96 return pfnOutput(pvArgOutput, "<empty>", sizeof("<empty>") - 1);96 return pfnOutput(pvArgOutput, RT_STR_TUPLE("<empty>")); 97 97 if (cCpus == RT_ELEMENTS(pSet->au32Bitmap) * 32) 98 return pfnOutput(pvArgOutput, "<full>", sizeof("<full>") - 1);98 return pfnOutput(pvArgOutput, RT_STR_TUPLE("<full>")); 99 99 100 100 /* -
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r44528 r46326 545 545 * String switch time! 546 546 */ 547 if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))547 if (strncmp(pszName, RT_STR_TUPLE("/GVMM/"))) 548 548 return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */ 549 549 int rc = VINF_SUCCESS; … … 613 613 * String switch time! 614 614 */ 615 if (strncmp(pszName, "/GVMM/", sizeof("/GVMM/") - 1))615 if (strncmp(pszName, RT_STR_TUPLE("/GVMM/"))) 616 616 return VERR_CFGM_VALUE_NOT_FOUND; /* borrow status codes from CFGM... */ 617 617 int rc = VINF_SUCCESS; -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r46165 r46326 3026 3026 else 3027 3027 { 3028 if (!strncmp(pszArgs, "verbose", sizeof("verbose") - 1))3028 if (!strncmp(pszArgs, RT_STR_TUPLE("verbose"))) 3029 3029 { 3030 3030 pszArgs += 7; 3031 3031 *penmType = CPUMDUMPTYPE_VERBOSE; 3032 3032 } 3033 else if (!strncmp(pszArgs, "terse", sizeof("terse") - 1))3033 else if (!strncmp(pszArgs, RT_STR_TUPLE("terse"))) 3034 3034 { 3035 3035 pszArgs += 5; 3036 3036 *penmType = CPUMDUMPTYPE_TERSE; 3037 3037 } 3038 else if (!strncmp(pszArgs, "default", sizeof("default") - 1))3038 else if (!strncmp(pszArgs, RT_STR_TUPLE("default"))) 3039 3039 { 3040 3040 pszArgs += 7; -
trunk/src/VBox/VMM/VMMR3/DBGFLog.cpp
r44528 r46326 42 42 PRTLOGGER pLogger; 43 43 const char *psz = *ppsz; 44 if (!strncmp(psz, "release:", sizeof("release:") - 1))44 if (!strncmp(psz, RT_STR_TUPLE("release:"))) 45 45 { 46 46 *ppsz += sizeof("release:") - 1; … … 49 49 else 50 50 { 51 if (!strncmp(psz, "debug:", sizeof("debug:") - 1))51 if (!strncmp(psz, RT_STR_TUPLE("debug:"))) 52 52 *ppsz += sizeof("debug:") - 1; 53 53 pLogger = RTLogDefaultInstance(); -
trunk/src/VBox/VMM/VMMR3/FTM.cpp
r44529 r46326 198 198 static int ftmR3TcpWriteACK(PVM pVM) 199 199 { 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")); 201 201 if (RT_FAILURE(rc)) 202 202 { … … 286 286 return VINF_SUCCESS; 287 287 288 if (!strncmp(szMsg, "NACK=", sizeof("NACK=") - 1))288 if (!strncmp(szMsg, RT_STR_TUPLE("NACK="))) 289 289 { 290 290 char *pszMsgText = strchr(szMsg, ';'); … … 334 334 static int ftmR3TcpSubmitCommand(PVM pVM, const char *pszCommand, bool fWaitForAck = true) 335 335 { 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")); 337 337 if (RT_FAILURE(rc)) 338 338 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.