VirtualBox

Changeset 51441 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 28, 2014 10:59:01 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93998
Message:

Main: code formatting.

Location:
trunk/src/VBox/Main
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ProgressImpl.cpp

    r51092 r51441  
    159159            uint64_t ullTimeRemaining = ullTimeTotal - ullTimeElapsed;
    160160
    161 //          Log(("Progress::GetTimeRemaining: dPercentDone %RI32, ullTimeNow = %RI64, ullTimeElapsed = %RI64,
    162 //          ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n",
    163 //          (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining));
     161//          LogFunc(("dPercentDone = %RI32, ullTimeNow = %RI64, ullTimeElapsed = %RI64, ullTimeTotal = %RI64, ullTimeRemaining = %RI64\n",
     162//                   (uint32_t)dPercentDone, ullTimeNow, ullTimeElapsed, ullTimeTotal, ullTimeRemaining));
    164163
    165164            *aTimeRemaining = (LONG)(ullTimeRemaining / 1000);
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r51436 r51441  
    40874087                    hrc = pMedium->COMGETTER(Location)(loc.asOutParam());                   H();
    40884088                    setVMRuntimeErrorCallbackF(0, "DvdOrFloppyImageInaccessible",
    4089 "The image file '%ls' is inaccessible and is being ignored. Please select a different image file for the virtual %s drive.",
     4089                                               "The image file '%ls' is inaccessible and is being ignored. "
     4090                                               "Please select a different image file for the virtual %s drive.",
    40904091                                               loc.raw(),
    40914092                                               enmType == DeviceType_DVD ? "DVD" : "floppy");
     
    47304731                            hrc = HRESULT_FROM_WIN32(err);
    47314732                            AssertMsgFailed(("%hrc=%Rhrc %#x\n", hrc, hrc));
    4732                             AssertLogRelMsgFailed((
    4733                             "NetworkAttachmentType_Bridged: WideCharToMultiByte failed, hr=%Rhrc (0x%x) err=%u\n",
     4733                            AssertLogRelMsgFailed(("NetworkAttachmentType_Bridged: WideCharToMultiByte failed, hr=%Rhrc (0x%x) err=%u\n",
    47344734                                                   hrc, hrc, err));
    47354735                        }
     
    51135113                            DWORD err = GetLastError();
    51145114                            hrc = HRESULT_FROM_WIN32(err);
    5115                             AssertLogRelMsgFailed((
    5116                         "NetworkAttachmentType_HostOnly: WideCharToMultiByte failed, hr=%Rhrc (0x%x) err=%u\n", hrc, hrc, err));
     5115                            AssertLogRelMsgFailed(("NetworkAttachmentType_HostOnly: WideCharToMultiByte failed, hr=%Rhrc (0x%x) err=%u\n",
     5116                                                  hrc, hrc, err));
    51175117                        }
    51185118                    }
     
    51355135                {
    51365136                    VBoxNetCfgWinReleaseINetCfg(pNc, FALSE /*fHasWriteLock*/);
    5137                     AssertLogRelMsgFailed((
    5138                     "NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n", hrc, hrc));
     5137                    AssertLogRelMsgFailed(("NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n",
     5138                                          hrc, hrc));
    51395139                    H();
    51405140                }
  • trunk/src/VBox/Main/src-client/ConsoleImplTeleporter.cpp

    r51092 r51441  
    807807         */
    808808        AssertLogRelMsg(enmVMState == VMSTATE_SUSPENDED, ("%s\n", VMR3GetStateName(enmVMState)));
    809         AssertLogRelMsg(enmMachineState == MachineState_TeleportingPausedVM,("%s\n",
    810                                                                             Global::stringifyMachineState(enmMachineState)));
     809        AssertLogRelMsg(enmMachineState == MachineState_TeleportingPausedVM,
     810                        ("%s\n", Global::stringifyMachineState(enmMachineState)));
    811811
    812812        ptrVM.release();
  • trunk/src/VBox/Main/src-client/DisplayImpl.cpp

    r51436 r51441  
    43704370                 break;
    43714371             }
    4372              else if (pHdr->u8Type != VBOX_VIDEO_INFO_TYPE_NV_HEAP) /** @todo why is
    4373                                                                      Additions/WINNT/Graphics/Miniport/VBoxVideo. cpp
    4374                                                                      pushing this to us? */
     4372             else if (pHdr->u8Type != VBOX_VIDEO_INFO_TYPE_NV_HEAP)
    43754373             {
     4374                 /** @todo why is Additions/WINNT/Graphics/Miniport/VBoxVideo. cpp pushing this to us? */
    43764375                 LogRel(("Guest adapter information contains unsupported type %d. The block has been skipped.\n", pHdr->u8Type));
    43774376             }
  • trunk/src/VBox/Main/src-client/GuestSessionImplTasks.cpp

    r51092 r51441  
    506506                    if (RT_FAILURE(rc))
    507507                        setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    508                                             Utf8StrFmt(GuestSession::tr(
    509                                             "Waiting on termination for copying file \"%s\" failed: %Rrc"),
     508                                            Utf8StrFmt(GuestSession::tr("Waiting on termination for copying file \"%s\" failed: %Rrc"),
    510509                                                       mSource.c_str(), rc));
    511510                    else
    512511                    {
    513512                        setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    514                                             Utf8StrFmt(GuestSession::tr(
    515                                             "Waiting on termination for copying file \"%s\" failed with wait result %ld"),
     513                                            Utf8StrFmt(GuestSession::tr("Waiting on termination for copying file \"%s\" failed with wait result %ld"),
    516514                                                       mSource.c_str(), waitRes));
    517515                        rc = VERR_GENERAL_FAILURE; /* Fudge. */
     
    530528                    {
    531529                        setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    532                                             Utf8StrFmt(GuestSession::tr(
    533                                                        "Copying file \"%s\" failed with status %ld, exit code %ld"),
     530                                            Utf8StrFmt(GuestSession::tr("Copying file \"%s\" failed with status %ld, exit code %ld"),
    534531                                                       mSource.c_str(), procStatus, exitCode)); /**@todo Add stringify methods! */
    535532                        rc = VERR_GENERAL_FAILURE; /* Fudge. */
     
    689686                            default:
    690687                                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    691                                                     Utf8StrFmt(GuestSession::tr(
    692                                                                "Error while creating guest process for copying file \"%s\" from guest to host: %Rrc"),
     688                                                    Utf8StrFmt(GuestSession::tr("Error while creating guest process for copying file \"%s\" from guest to host: %Rrc"),
    693689                                                               mSource.c_str(), rc));
    694690                                break;
     
    721717                                default:
    722718                                    setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    723                                                         Utf8StrFmt(GuestSession::tr(
    724                                                                    "Reading from file \"%s\" (offset %RU64) failed: %Rrc"),
     719                                                        Utf8StrFmt(GuestSession::tr("Reading from file \"%s\" (offset %RU64) failed: %Rrc"),
    725720                                                                   mSource.c_str(), cbWrittenTotal, rc));
    726721                                    break;
     
    736731                            {
    737732                                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    738                                                     Utf8StrFmt(GuestSession::tr(
    739                                                                "Error writing to file \"%s\" (%RU64 bytes left): %Rrc"),
     733                                                    Utf8StrFmt(GuestSession::tr("Error writing to file \"%s\" (%RU64 bytes left): %Rrc"),
    740734                                                                mDest.c_str(), cbToRead, rc));
    741735                                break;
     
    791785                        /* If we did not copy all let the user know. */
    792786                        setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    793                                             Utf8StrFmt(GuestSession::tr(
    794                                                        "Copying file \"%s\" failed (%RU64/%RI64 bytes transfered)"),
     787                                            Utf8StrFmt(GuestSession::tr("Copying file \"%s\" failed (%RU64/%RI64 bytes transfered)"),
    795788                                                       mSource.c_str(), cbWrittenTotal, objData.mObjectSize));
    796789                        rc = VERR_GENERAL_FAILURE; /* Fudge. */
     
    807800                        {
    808801                            setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    809                                                 Utf8StrFmt(GuestSession::tr(
    810                                                            "Copying file \"%s\" failed with status %ld, exit code %d"),
     802                                                Utf8StrFmt(GuestSession::tr("Copying file \"%s\" failed with status %ld, exit code %d"),
    811803                                                           mSource.c_str(), procStatus, exitCode)); /**@todo Add
    812804                                                                                                       stringify methods! */
     
    945937
    946938            ComObjPtr<Progress> pProgressCopyTo;
    947             rc = pSession->i_startTaskAsync(Utf8StrFmt(GuestSession::tr(
    948                                                        "Copying Guest Additions installer file \"%s\" to \"%s\" on guest"),
     939            rc = pSession->i_startTaskAsync(Utf8StrFmt(GuestSession::tr("Copying Guest Additions installer file \"%s\" to \"%s\" on guest"),
    949940                                                       mSource.c_str(), strFileDest.c_str()),
    950941                                                       pTask, pProgressCopyTo);
     
    10441035            case VERR_NOT_EQUAL: /** @todo Special guest control rc needed! */
    10451036                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1046                                     Utf8StrFmt(GuestSession::tr(
    1047                                                "Running update file \"%s\" on guest terminated with exit code %ld"),
     1037                                    Utf8StrFmt(GuestSession::tr("Running update file \"%s\" on guest terminated with exit code %ld"),
    10481038                                               procInfo.mCommand.c_str(), exitCode));
    10491039                break;
     
    10561046            case VERR_INVALID_STATE: /** @todo Special guest control rc needed! */
    10571047                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1058                                     Utf8StrFmt(GuestSession::tr(
    1059                                                "Update file \"%s\" reported invalid running state"),
     1048                                    Utf8StrFmt(GuestSession::tr("Update file \"%s\" reported invalid running state"),
    10601049                                               procInfo.mCommand.c_str()));
    10611050                break;
     
    10631052            default:
    10641053                setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1065                                     Utf8StrFmt(GuestSession::tr(
    1066                                                "Error while running update file \"%s\" on guest: %Rrc"),
     1054                                    Utf8StrFmt(GuestSession::tr("Error while running update file \"%s\" on guest: %Rrc"),
    10671055                                               procInfo.mCommand.c_str(), vrc));
    10681056                break;
     
    11271115        if (addsRunLevel == AdditionsRunLevelType_System)
    11281116            hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
    1129                                      Utf8StrFmt(GuestSession::tr(
    1130                                                 "Guest Additions are installed but not fully loaded yet, aborting automatic update")));
     1117                                     Utf8StrFmt(GuestSession::tr("Guest Additions are installed but not fully loaded yet, aborting automatic update")));
    11311118        else
    11321119            hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
    1133                                      Utf8StrFmt(GuestSession::tr(
    1134                                                 "Guest Additions not installed or ready, aborting automatic update")));
     1120                                     Utf8StrFmt(GuestSession::tr("Guest Additions not installed or ready, aborting automatic update")));
    11351121        rc = VERR_NOT_SUPPORTED;
    11361122    }
     
    11981184                        {
    11991185                            hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
    1200                                                      Utf8StrFmt(GuestSession::tr(
    1201                                                                 "Windows 2000 and XP are not supported for automatic updating due to WHQL interaction, please update manually")));
     1186                                                     Utf8StrFmt(GuestSession::tr("Windows 2000 and XP are not supported for automatic updating due to WHQL interaction, please update manually")));
    12021187                            rc = VERR_NOT_SUPPORTED;
    12031188                        }
     
    12071192                {
    12081193                    hr = setProgressErrorMsg(VBOX_E_NOT_SUPPORTED,
    1209                                              Utf8StrFmt(GuestSession::tr(
    1210                                                         "%s (%s) not supported for automatic updating, please update manually"),
     1194                                             Utf8StrFmt(GuestSession::tr("%s (%s) not supported for automatic updating, please update manually"),
    12111195                                                        strOSType.c_str(), strOSVer.c_str()));
    12121196                    rc = VERR_NOT_SUPPORTED;
     
    13111295                    default:
    13121296                        hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1313                                                  Utf8StrFmt(GuestSession::tr(
    1314                                                             "Error creating installation directory \"%s\" on the guest: %Rrc"),
     1297                                                 Utf8StrFmt(GuestSession::tr("Error creating installation directory \"%s\" on the guest: %Rrc"),
    13151298                                                            strUpdateDir.c_str(), rc));
    13161299                        break;
     
    14431426                        {
    14441427                            hr = setProgressErrorMsg(VBOX_E_IPRT_ERROR,
    1445                                                      Utf8StrFmt(GuestSession::tr(
    1446                                                                 "Error while copying file \"%s\" to \"%s\" on the guest: %Rrc"),
     1428                                                     Utf8StrFmt(GuestSession::tr("Error while copying file \"%s\" to \"%s\" on the guest: %Rrc"),
    14471429                                                                itFiles->strSource.c_str(), itFiles->strDest.c_str(), rc));
    14481430                            break;
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r51092 r51441  
    30753075            {
    30763076                size_t i = 0;
    3077                 for (list<VirtualSystemDescriptionEntry*>::const_iterator itHD =
    3078                      avsdeHDs.begin(); itHD != avsdeHDs.end(); ++itHD, i++)
     3077                for (list<VirtualSystemDescriptionEntry*>::const_iterator itHD = avsdeHDs.begin();
     3078                     itHD != avsdeHDs.end(); ++itHD, i++)
    30793079                     Log(("avsdeHDs[%zu]: strRef=%s strOvf=%s\n", i, (*itHD)->strRef.c_str(), (*itHD)->strOvf.c_str()));
    30803080                i = 0;
  • trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp

    r51092 r51441  
    13061306
    13071307        Assert(SUCCEEDED(hrc)); /* This is not allowed to fail because the existence
    1308                                 i of the group was checked when it was attached. */
     1308                                 * of the group was checked when it was attached. */
    13091309        if (SUCCEEDED(hrc))
    13101310            pBwGroup.queryInterfaceTo(aBandwidthGroup.asOutParam());
  • trunk/src/VBox/Main/src-server/USBProxyService.cpp

    r51092 r51441  
    356356                &&  fRunFilters)
    357357            {
    358                 Assert(aDone && pHostDevice->i_getUnistate() ==
    359                     kHostUSBDeviceState_HeldByProxy && pHostDevice->i_getMachine().isNull());
     358                Assert(   aDone
     359                       && pHostDevice->i_getUnistate() == kHostUSBDeviceState_HeldByProxy
     360                       && pHostDevice->i_getMachine().isNull());
    360361                devLock.release();
    361362                alock.release();
  • trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp

    r51092 r51441  
    38543854 *
    38553855 * @param mediaRegistry Settings structure to fill.
    3856  * @param uuidRegistry The UUID of the media registry; either a machine UUID (
    3857  *        if machine registry) or the UUID of the global registry.
     3856 * @param uuidRegistry The UUID of the media registry; either a machine UUID
     3857 *        (if machine registry) or the UUID of the global registry.
    38583858 * @param strMachineFolder The machine folder for relative paths, if machine registry, or an empty string otherwise.
    38593859 */
  • trunk/src/VBox/Main/src-server/win/HostPowerWin.cpp

    r51092 r51441  
    197197                            else
    198198                            /* If the machine has less than 5% battery left (and is not connected
    199  *                            to the AC), then we should save the state. */
     199                             * to the AC), then we should save the state. */
    200200                            if (SystemPowerStatus.BatteryFlag == 4      /* critical battery status; less than 5% */)
    201201                            {
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