VirtualBox

Ignore:
Timestamp:
Feb 23, 2021 5:29:34 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142916
Message:

VBoxManage/showvminfo: Fix forgotten change in r120461, and catch this in the future with Assert.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r87241 r87851  
    568568    do \
    569569    { \
     570        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    570571        if (details == VMINFO_MACHINEREADABLE) \
    571572            outputMachineReadableString(a_pszMachine, a_fValue ? "on" : "off"); \
     
    580581    do \
    581582    { \
     583        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    582584        if (details == VMINFO_MACHINEREADABLE) \
    583585            RTPrintf("%s=%u\n", a_pszMachine, a_uValue); \
     
    589591    do \
    590592    { \
     593        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    591594        if (details == VMINFO_MACHINEREADABLE) \
    592595            RTPrintf("%s=%lld\n", a_pszMachine, a_llValue); \
     
    601604    do \
    602605    { \
     606        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    603607        BOOL f; \
    604608        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(&f), hrcCheck); \
     
    612616    do \
    613617    { \
     618        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    614619        BOOL f; \
    615620        CHECK_ERROR2I_RET(a_pObj, a_Invocation, hrcCheck); \
     
    623628    do \
    624629    { \
     630        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    625631        Bstr bstr; \
    626632        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(bstr.asOutParam()), hrcCheck); \
     
    634640    do \
    635641    { \
     642        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    636643        Bstr bstr; \
    637644        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(bstr.asOutParam()), hrcCheck); \
     
    650657    do \
    651658    { \
     659        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    652660        Bstr bstr; \
    653661        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(bstr.asOutParam()), hrcCheck); \
     
    664672    do \
    665673    { \
     674        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    666675        SafeArray<BSTR> array; \
    667676        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(ComSafeArrayAsOutParam(array)), hrcCheck); \
     
    686695    do \
    687696    { \
     697        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    688698        USHORT u16 = 0; \
    689699        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(&u16), hrcCheck); \
     
    697707    do \
    698708    { \
     709        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    699710        ULONG u32 = 0; \
    700711        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(&u32), hrcCheck); \
     
    708719    do \
    709720    { \
     721        Assert(a_pszHuman[strlen(a_pszHuman) - 1] == ':'); \
    710722        LONG64 i64 = 0; \
    711723        CHECK_ERROR2I_RET(a_pObj, COMGETTER(a_Prop)(&i64), hrcCheck); \
     
    788800    SHOW_STRING_PROP(      machine, LogFolder,                  "LogFldr",              "Log folder:");
    789801    SHOW_UUID_PROP(        machine, HardwareUUID,               "hardwareuuid",         "Hardware UUID:");
    790     SHOW_ULONG_PROP(       machine, MemorySize,                 "memory",               "Memory size",      "MB");
     802    SHOW_ULONG_PROP(       machine, MemorySize,                 "memory",               "Memory size:",     "MB");
    791803    SHOW_BOOLEAN_PROP(     machine, PageFusionEnabled,          "pagefusion",           "Page Fusion:");
    792804    ComPtr<IGraphicsAdapter> pGraphicsAdapter;
    793805    machine->COMGETTER(GraphicsAdapter)(pGraphicsAdapter.asOutParam());
    794     SHOW_ULONG_PROP(pGraphicsAdapter, VRAMSize,                 "vram",                 "VRAM size:",        "MB");
    795     SHOW_ULONG_PROP(       machine, CPUExecutionCap,            "cpuexecutioncap",      "CPU exec cap:",     "%");
     806    SHOW_ULONG_PROP(pGraphicsAdapter, VRAMSize,                 "vram",                 "VRAM size:",       "MB");
     807    SHOW_ULONG_PROP(       machine, CPUExecutionCap,            "cpuexecutioncap",      "CPU exec cap:",    "%");
    796808    SHOW_BOOLEAN_PROP(     machine, HPETEnabled,                "hpet",                 "HPET:");
    797     SHOW_STRING_PROP_MAJ(  machine, CPUProfile,                 "cpu-profile",          "CPUProfile:",       "host", 6);
     809    SHOW_STRING_PROP_MAJ(  machine, CPUProfile,                 "cpu-profile",          "CPUProfile:",      "host", 6);
    798810
    799811    ChipsetType_T chipsetType;
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