Changeset 41009 in vbox
- Timestamp:
- Apr 20, 2012 1:15:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r41004 r41009 3051 3051 case CFGMVALUETYPE_INTEGER: 3052 3052 { 3053 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%lld", (int)cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64); 3054 size_t cchLeafName = strlen(pLeaf->szName); 3055 if ( cchLeafName >= 4 3056 && !RTStrCmp(&pLeaf->szName[cchLeafName - 4], "Size")) 3053 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%'lld", (int)cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64); 3054 if ( ( pLeaf->cchName >= 4 3055 && !RTStrCmp(&pLeaf->szName[pLeaf->cchName - 4], "Size")) 3056 || ( pLeaf->cchName >= 2 3057 && !RTStrNCmp(pLeaf->szName, "cb", 2)) ) 3057 3058 { 3058 if (pLeaf->Value.Integer.u64 > _2M) 3059 pHlp->pfnPrintf(pHlp, ", %lldMB", pLeaf->Value.Integer.u64 / _1M); 3060 else if (pLeaf->Value.Integer.u64 > 2 * _1K) 3061 pHlp->pfnPrintf(pHlp, ", %lldKB", pLeaf->Value.Integer.u64 / _1K); 3059 if (pLeaf->Value.Integer.u64 > _2G) 3060 pHlp->pfnPrintf(pHlp, ", %'lld GB", pLeaf->Value.Integer.u64 / _1G); 3061 else if (pLeaf->Value.Integer.u64 > _2M) 3062 pHlp->pfnPrintf(pHlp, ", %'lld MB", pLeaf->Value.Integer.u64 / _1M); 3063 else if (pLeaf->Value.Integer.u64 > _2K) 3064 pHlp->pfnPrintf(pHlp, ", %'lld KB", pLeaf->Value.Integer.u64 / _1K); 3062 3065 } 3063 3066 pHlp->pfnPrintf(pHlp, ")\n");
Note:
See TracChangeset
for help on using the changeset viewer.