Changeset 14070 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 10, 2008 11:45:24 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 39126
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/CFGM.cpp
r13840 r14070 339 339 * or successive calls to CFGMR3GetNextChild(). 340 340 */ 341 VMMR3DECL( int) CFGMR3GetNameLen(PCFGMNODE pCur)341 VMMR3DECL(size_t) CFGMR3GetNameLen(PCFGMNODE pCur) 342 342 { 343 343 return pCur ? pCur->cchName + 1 : 0; … … 448 448 * or successive calls to CFGMR3GetNextValue(). 449 449 */ 450 VMMR3DECL( int) CFGMR3GetValueNameLen(PCFGMLEAF pCur)450 VMMR3DECL(size_t) CFGMR3GetValueNameLen(PCFGMLEAF pCur) 451 451 { 452 452 return pCur ? pCur->cchName + 1 : 0; 453 453 } 454 454 455 455 456 /** … … 1073 1074 if (pNode) 1074 1075 { 1075 RTUINTcchName = strlen(pszName);1076 size_t cchName = strlen(pszName); 1076 1077 PCFGMLEAF pLeaf = pNode->pFirstLeaf; 1077 1078 while (pLeaf) … … 2516 2517 */ 2517 2518 PCFGMLEAF pLeaf; 2518 unsignedcchMax = 0;2519 size_t cchMax = 0; 2519 2520 for (pLeaf = CFGMR3GetFirstValue(pRoot); pLeaf; pLeaf = CFGMR3GetNextValue(pLeaf)) 2520 2521 cchMax = RT_MAX(cchMax, pLeaf->cchName); … … 2524 2525 { 2525 2526 case CFGMVALUETYPE_INTEGER: 2526 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%lld)\n", cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64);2527 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%lld)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64); 2527 2528 break; 2528 2529 2529 2530 case CFGMVALUETYPE_STRING: 2530 pHlp->pfnPrintf(pHlp, " %-*s <string> = \"%s\" (cch=%d)\n", cchMax, pLeaf->szName, pLeaf->Value.String.psz, pLeaf->Value.String.cch);2531 pHlp->pfnPrintf(pHlp, " %-*s <string> = \"%s\" (cch=%d)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.String.psz, pLeaf->Value.String.cch); 2531 2532 break; 2532 2533 2533 2534 case CFGMVALUETYPE_BYTES: 2534 pHlp->pfnPrintf(pHlp, " %-*s <bytes> = \"%.*Rhxs\" (cb=%d)\n", cchMax, pLeaf->szName, pLeaf->Value.Bytes.cb, pLeaf->Value.Bytes.pau8, pLeaf->Value.Bytes.cb);2535 pHlp->pfnPrintf(pHlp, " %-*s <bytes> = \"%.*Rhxs\" (cb=%d)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.Bytes.cb, pLeaf->Value.Bytes.pau8, pLeaf->Value.Bytes.cb); 2535 2536 break; 2536 2537 -
trunk/src/VBox/VMM/CFGMInternal.h
r12635 r14070 49 49 { 50 50 /** Length of string. (In bytes, including the terminator.) */ 51 RTUINTcch;51 size_t cch; 52 52 /** Pointer to the string. */ 53 53 char *psz; … … 58 58 { 59 59 /** Length of byte string. (in bytes) */ 60 RTUINTcb;60 size_t cb; 61 61 /** Pointer to the byte string. */ 62 62 uint8_t *pau8; … … 83 83 84 84 /** Name length. (exclusive) */ 85 RTUINTcchName;85 size_t cchName; 86 86 /** Name. */ 87 87 char szName[1]; … … 114 114 115 115 /** Name length. (exclusive) */ 116 RTUINTcchName;116 size_t cchName; 117 117 /** Name. */ 118 118 char szName[1]; -
trunk/src/VBox/VMM/PDMDevice.cpp
r13818 r14070 496 496 if (rc == VERR_CFGM_NOT_ENOUGH_SPACE) 497 497 { 498 AssertMsgFailed(("configuration error: The module name is too long, cchName=% d.\n", CFGMR3GetNameLen(pCur)));498 AssertMsgFailed(("configuration error: The module name is too long, cchName=%zu.\n", CFGMR3GetNameLen(pCur))); 499 499 return VERR_PDM_MODULE_NAME_TOO_LONG; 500 500 } -
trunk/src/VBox/VMM/PDMDriver.cpp
r13818 r14070 175 175 if (rc == VERR_CFGM_NOT_ENOUGH_SPACE) 176 176 { 177 AssertMsgFailed(("configuration error: The module name is too long, cchName=% d.\n", CFGMR3GetNameLen(pCur)));177 AssertMsgFailed(("configuration error: The module name is too long, cchName=%zu.\n", CFGMR3GetNameLen(pCur))); 178 178 return VERR_PDM_MODULE_NAME_TOO_LONG; 179 179 }
Note:
See TracChangeset
for help on using the changeset viewer.