VirtualBox

Ignore:
Timestamp:
Nov 20, 2023 10:43:41 PM (12 months ago)
Author:
vboxsync
Message:

VBoxManage: 'list ostype': Use platformArchitectureToStr (no translation required, btw.) and name the field clearly. bugref:10384

File:
1 edited

Legend:

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

    r102154 r102167  
    813813        Bstr guestId;
    814814        guestOS->COMGETTER(Id)(guestId.asOutParam());
    815         RTPrintf("ID:           %ls\n", guestId.raw());
     815        RTPrintf(         "ID:              %ls\n", guestId.raw());
    816816        Bstr guestDescription;
    817817        guestOS->COMGETTER(Description)(guestDescription.asOutParam());
    818         RTPrintf(List::tr("Description:  %ls\n"), guestDescription.raw());
     818        RTPrintf(List::tr("Description:     %ls\n"), guestDescription.raw());
    819819        Bstr familyId;
    820820        guestOS->COMGETTER(FamilyId)(familyId.asOutParam());
    821         RTPrintf(List::tr("Family ID:    %ls\n"), familyId.raw());
     821        RTPrintf(List::tr("Family ID:       %ls\n"), familyId.raw());
    822822        Bstr familyDescription;
    823823        guestOS->COMGETTER(FamilyDescription)(familyDescription.asOutParam());
    824         RTPrintf(List::tr("Family Desc:  %ls\n"), familyDescription.raw());
     824        RTPrintf(List::tr("Family Desc:     %ls\n"), familyDescription.raw());
    825825        Bstr guestOSSubtype;
    826826        guestOS->COMGETTER(Subtype)(guestOSSubtype.asOutParam());
    827827        if (guestOSSubtype.isNotEmpty())
    828             RTPrintf(List::tr("OS Subtype:   %ls\n"), guestOSSubtype.raw());
    829         PlatformArchitecture_T enmArch;
    830         guestOS->COMGETTER(PlatformArchitecture)(&enmArch);
    831         const char *pszArch = "?";
    832         switch (enmArch)
    833         {
    834             case PlatformArchitecture_x86:
    835                 pszArch = List::tr("x86");
    836                 break;
    837             case PlatformArchitecture_ARM:
    838                 pszArch = List::tr("ARM");
    839                 break;
    840             default:
    841                 ASSERT(false);
    842                 break;
    843         }
    844         RTPrintf(List::tr("Architecture: %s\n"), pszArch);
     828            RTPrintf(List::tr("OS Subtype:      %ls\n"), guestOSSubtype.raw());
     829        PlatformArchitecture_T enmPlatformArch = (PlatformArchitecture_T)PlatformArchitecture_None;
     830        guestOS->COMGETTER(PlatformArchitecture)(&enmPlatformArch);
     831        RTPrintf(List::tr("Platform Arch.:  %s\n"), platformArchitectureToStr(enmPlatformArch));
    845832        BOOL is64Bit;
    846833        guestOS->COMGETTER(Is64Bit)(&is64Bit);
    847         RTPrintf(List::tr("64 bit:       %RTbool\n"), is64Bit);
     834        RTPrintf(List::tr("64 bit:          %RTbool\n"), is64Bit);
    848835        RTPrintf("\n");
    849836    }
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