VirtualBox

Changeset 92535 in vbox


Ignore:
Timestamp:
Nov 21, 2021 8:59:41 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148410
Message:

VBoxManage/showvminfo: Tighten up empty lists a little.

File:
1 edited

Legend:

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

    r92372 r92535  
    414414    }
    415415    if (details != VMINFO_MACHINEREADABLE)
    416         RTPrintf(bwGroups.size() != 0 ? "\n" : Info::tr("<none>\n\n"));
     416        RTPrintf(bwGroups.size() != 0 ? "\n" : Info::tr("<none>\n"));
    417417
    418418    return rc;
     
    23262326        if (SUCCEEDED(rc))
    23272327        {
    2328             if (details != VMINFO_MACHINEREADABLE)
    2329                 RTPrintf(Info::tr("\nUSB Device Filters:\n\n"));
    2330 
    2331             if (Coll.size() == 0)
     2328            if (Coll.size() > 0)
    23322329            {
    23332330                if (details != VMINFO_MACHINEREADABLE)
    2334                     RTPrintf(Info::tr("<none>\n\n"));
    2335             }
    2336             else
    2337             {
     2331                    RTPrintf(Info::tr("USB Device Filters:\n"));
    23382332                for (size_t index = 0; index < Coll.size(); ++index)
    23392333                {
     
    23612355                }
    23622356            }
     2357            else if (details != VMINFO_MACHINEREADABLE)
     2358                RTPrintf("%-28s %s\n", Info::tr("USB Device Filters:"), Info::tr("<none>"));
    23632359        }
    23642360
     
    25012497     */
    25022498    if (details != VMINFO_MACHINEREADABLE)
    2503         RTPrintf(Info::tr("Bandwidth groups:  "));
     2499        RTPrintf("%-28s ", Info::tr("Bandwidth groups:"));
    25042500    {
    25052501        ComPtr<IBandwidthControl> bwCtrl;
     
    25142510     */
    25152511    if (details != VMINFO_MACHINEREADABLE)
    2516         RTPrintf(Info::tr("Shared folders:"));
     2512        RTPrintf("%-28s ", Info::tr("Shared folders:"));
    25172513    uint32_t numSharedFolders = 0;
    25182514#if 0 // not yet implemented
     
    25522548        }
    25532549    }
    2554     if (!numSharedFolders && details != VMINFO_MACHINEREADABLE)
    2555         RTPrintf(Info::tr("<none>\n"));
    25562550    if (details != VMINFO_MACHINEREADABLE)
    2557         RTPrintf("\n");
     2551    {
     2552        if (!numSharedFolders)
     2553            RTPrintf(Info::tr("<none>\n"));
     2554        else
     2555            RTPrintf("\n");
     2556    }
    25582557
    25592558    if (pConsole)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette