VirtualBox

Changeset 35129 in vbox


Ignore:
Timestamp:
Dec 15, 2010 1:10:12 PM (14 years ago)
Author:
vboxsync
Message:

GuestAdditionsUpdate/Main: Minor logging + waiting time adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r35095 r35129  
    692692                                                    Bstr("").raw() /* Username */,
    693693                                                    Bstr("").raw() /* Password */,
    694                                                     5 * 1000 /* Wait 5s for getting the process started */,
     694                                                    10 * 1000 /* Wait 10s for getting the process started */,
    695695                                                    &uPID, progressInstaller.asOutParam(), &vrc);
    696696                if (SUCCEEDED(rc))
    697697                {
     698                    LogRel(("Guest Additions update is running ...\n"));
     699
    698700                    /* If the caller does not want to wait for out guest update process to end,
    699701                     * complete the progress object now so that the caller can do other work. */
     
    703705                        aTask->progress->SetCurrentOperationProgress(70);
    704706
    705                     LogRel(("Guest Additions update is running ...\n"));
     707                    /* Wait until the Guest Additions installer finishes ... */
    706708                    while (   SUCCEEDED(progressInstaller->COMGETTER(Completed(&fCompleted)))
    707709                           && !fCompleted)
     
    719721                            break;
    720722                        }
    721                         RTThreadSleep(1);
     723                        RTThreadSleep(100);
    722724                    }
    723725
     
    737739                            else
    738740                            {
     741                                LogRel(("Guest Additions update failed (Exit code=%u, Status=%u, Flags=%u)\n",
     742                                        uRetExitCode, uRetStatus, uRetFlags));
    739743                                rc = TaskGuest::setProgressErrorInfo(VBOX_E_IPRT_ERROR, aTask->progress,
    740744                                                                     Guest::tr("Guest Additions update failed with exit code=%u (status=%u, flags=%u)"),
     
    745749                                 && fCanceled)
    746750                        {
     751                            LogRel(("Guest Additions update was canceled\n"));
    747752                            rc = TaskGuest::setProgressErrorInfo(VBOX_E_IPRT_ERROR, aTask->progress,
    748753                                                                 Guest::tr("Guest Additions update was canceled by the guest with exit code=%u (status=%u, flags=%u)"),
     
    751756                        else
    752757                        {
    753                             /* Guest Additions update was canceled by the user. */
     758                            LogRel(("Guest Additions update was canceled by the user\n"));
    754759                        }
    755760                    }
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