Changeset 94479 in vbox
- Timestamp:
- Apr 5, 2022 8:32:26 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150812
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r94477 r94479 3357 3357 case CFGMVALUETYPE_INTEGER: 3358 3358 { 3359 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%'lld", (int)cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64); 3359 pHlp->pfnPrintf(pHlp, " %-*s <integer> = %#018llx (%'lld", 3360 (int)cchMax, pLeaf->szName, pLeaf->Value.Integer.u64, pLeaf->Value.Integer.u64); 3360 3361 if ( ( pLeaf->cchName >= 4 3361 3362 && !RTStrCmp(&pLeaf->szName[pLeaf->cchName - 4], "Size")) 3362 3363 || ( pLeaf->cchName >= 2 3363 3364 && !RTStrNCmp(pLeaf->szName, "cb", 2)) ) 3364 { 3365 if (pLeaf->Value.Integer.u64 > _2M) 3366 pHlp->pfnPrintf(pHlp, ", %'lld MB", pLeaf->Value.Integer.u64 / _1M); 3367 else if (pLeaf->Value.Integer.u64 > _2K) 3368 pHlp->pfnPrintf(pHlp, ", %'lld KB", pLeaf->Value.Integer.u64 / _1K); 3369 if (pLeaf->Value.Integer.u64 > _2G) 3370 pHlp->pfnPrintf(pHlp, ", %'lld.%lld GB", 3371 pLeaf->Value.Integer.u64 / _1G, 3372 (pLeaf->Value.Integer.u64 % _1G) / _1K * 10 / _1M); 3373 } 3374 pHlp->pfnPrintf(pHlp, ")\n"); 3365 pHlp->pfnPrintf(pHlp, ", %' Rhcb)", pLeaf->Value.Integer.u64); 3366 else 3367 pHlp->pfnPrintf(pHlp, ")\n"); 3375 3368 break; 3376 3369 } 3377 3370 3378 3371 case CFGMVALUETYPE_STRING: 3379 pHlp->pfnPrintf(pHlp, " %-*s <string> = \"%s\" (cb=%zu)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.String.psz, pLeaf->Value.String.cb); 3372 pHlp->pfnPrintf(pHlp, " %-*s <string> = \"%s\" (cb=%zu)\n", 3373 (int)cchMax, pLeaf->szName, pLeaf->Value.String.psz, pLeaf->Value.String.cb); 3380 3374 break; 3381 3375 3382 3376 case CFGMVALUETYPE_BYTES: 3383 pHlp->pfnPrintf(pHlp, " %-*s <bytes> = \"%.*Rhxs\" (cb=%zu)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.Bytes.cb, pLeaf->Value.Bytes.pau8, pLeaf->Value.Bytes.cb); 3377 pHlp->pfnPrintf(pHlp, " %-*s <bytes> = \"%.*Rhxs\" (cb=%zu)\n", 3378 (int)cchMax, pLeaf->szName, pLeaf->Value.Bytes.cb, pLeaf->Value.Bytes.pau8, pLeaf->Value.Bytes.cb); 3384 3379 break; 3385 3380 3386 3381 case CFGMVALUETYPE_PASSWORD: 3387 pHlp->pfnPrintf(pHlp, " %-*s <password>= \"***REDACTED***\" (cb=%zu)\n", (int)cchMax, pLeaf->szName, pLeaf->Value.String.cb); 3382 pHlp->pfnPrintf(pHlp, " %-*s <password>= \"***REDACTED***\" (cb=%zu)\n", 3383 (int)cchMax, pLeaf->szName, pLeaf->Value.String.cb); 3388 3384 break; 3389 3385
Note:
See TracChangeset
for help on using the changeset viewer.