VirtualBox

Changeset 76272 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 18, 2018 5:49:18 AM (6 years ago)
Author:
vboxsync
Message:

Removed that stupid kludge I put in to protect column boundaries, but later moved things off to the right column to avoid that limitation. Still need to test long VM and media names (longer than I tend to use) to see how badly it screws up the output of the media list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ImageMounter/vboximg-mount/vboximgMedia.cpp

    r76271 r76272  
    203203static void displayMediumInfo(MEDIUMINFO *pInfo, int nestLevel, bool fLast)
    204204{
    205     if (nestLevel > 20)
    206     {
    207         RTPrintf("Media nested too deeply\n");
    208         return;
    209     }
     205
    210206    char *cbScaled = vboximgScaledSize(pInfo->cbSize);
    211207    int cPad = nestLevel * 2;
     
    353349                    if (g_vboximgOpts.fVerbose)
    354350                    {
    355                         RTPrintf("----------------------------------------------------------------\n");
     351                        RTPrintf("-----------------------------------------------------------------\n");
    356352                        RTPrintf("VM Name:   \"%s\"\n", CSTR(machineName));
    357353                        RTPrintf("UUID:      %s\n",     CSTR(machineUuid));
     
    364360                        if (g_vboximgOpts.fWide & !g_vboximgOpts.fVerbose)
    365361                        {
    366                             RTPrintf("----------------------------------------------------------------  "
     362                            RTPrintf("-----------------------------------------------------------------  "
    367363                                 "------------------------------------\n");
    368                             RTPrintf("%-*s %*s %s\n", VM_MAX_NAME, CSTR(machineName), 32, "",  CSTR(machineUuid));
     364                            RTPrintf("%-*s %*s %s\n", VM_MAX_NAME, CSTR(machineName), 33, "",  CSTR(machineUuid));
    369365                        }
    370366                        else
    371367                        {
    372                             RTPrintf("----------------------------------------------------------------\n");
     368                            RTPrintf("-----------------------------------------------------------------\n");
    373369                            RTPrintf("VM:   %s\n", CSTR(machineName));
    374370                            RTPrintf("UUID: %s\n", CSTR(machineUuid));
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