VirtualBox

Ignore:
Timestamp:
Nov 5, 2009 10:55:31 AM (15 years ago)
Author:
vboxsync
Message:

VBoxManageInfo: display instance number and port count

File:
1 edited

Legend:

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

    r24301 r24375  
    537537        StorageControllerType_T    enmCtlType = StorageControllerType_Null;
    538538        const char *pszCtl = NULL;
     539        ULONG ulValue = 0;
    539540        Bstr storageCtlName;
    540541
    541542        storageCtl->COMGETTER(Name)(storageCtlName.asOutParam());
    542 
    543543        if (details == VMINFO_MACHINEREADABLE)
    544             RTPrintf("storagecontroller%u:\"%lS\"\n", i, storageCtlName.raw());
     544            RTPrintf("storagecontrollername%u:\"%lS\"\n", i, storageCtlName.raw());
    545545        else
    546             RTPrintf("Storage Controller      (%u): %lS\n", i, storageCtlName.raw());
     546            RTPrintf("Storage Controller Name (%u):            %lS\n", i, storageCtlName.raw());
    547547
    548548        storageCtl->COMGETTER(ControllerType)(&enmCtlType);
    549 
    550549        switch (enmCtlType)
    551550        {
     
    578577            RTPrintf("storagecontrollertype%u:=\"%s\"\n", i, pszCtl);
    579578        else
    580             RTPrintf("Storage Controller Type (%u): %s\n", i, pszCtl);
     579            RTPrintf("Storage Controller Type (%u):            %s\n", i, pszCtl);
     580
     581        storageCtl->COMGETTER(Instance)(&ulValue);
     582        if (details == VMINFO_MACHINEREADABLE)
     583            RTPrintf("storagecontrollerinstance%u:\"%lu\"\n", i, ulValue);
     584        else
     585            RTPrintf("Storage Controller Instance Number (%u): %lu\n", i, ulValue);
     586
     587        storageCtl->COMGETTER(MaxPortCount)(&ulValue);
     588        if (details == VMINFO_MACHINEREADABLE)
     589            RTPrintf("storagecontrollermaxportcount%u:\"%lu\"\n", i, ulValue);
     590        else
     591            RTPrintf("Storage Controller Max Port Count (%u):  %lu\n", i, ulValue);
     592
     593        storageCtl->COMGETTER(PortCount)(&ulValue);
     594        if (details == VMINFO_MACHINEREADABLE)
     595            RTPrintf("storagecontrollerportcount%u:\"%lu\"\n", i, ulValue);
     596        else
     597            RTPrintf("Storage Controller Port Count (%u):      %lu\n", i, ulValue);
    581598    }
    582599
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