VirtualBox

Changeset 56583 in vbox


Ignore:
Timestamp:
Jun 22, 2015 5:03:22 PM (9 years ago)
Author:
vboxsync
Message:

Main/ConsoleImpl: LogRel nit and todo has been addressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r56582 r56583  
    62526252            if (VMR3GetStateU(ptrVM.rawUVM()) != VMSTATE_SUSPENDED)
    62536253            {
    6254                 LogRel(("Ignoring host-resume VM resume request, VM is not currently suspended\n"));
     6254                LogRel(("Ignoring VM resume request, VM is currently not suspended\n"));
    62556255                return S_OK;
    62566256            }
    62576257            if (VMR3GetSuspendReason(ptrVM.rawUVM()) != VMSUSPENDREASON_HOST_SUSPEND)
    62586258            {
    6259                 LogRel(("Ignoring host-resume VM resume request, VM was not suspended due to host-suspend\n"));
     6259                LogRel(("Ignoring VM resume request, VM was not suspended due to host-suspend\n"));
    62606260                return S_OK;
    62616261            }
     
    62666266        {
    62676267            /*
    6268              * Any other reason to resume the VM is ignored when the VM was suspended due to a host suspend.
     6268             * Any other reason to resume the VM throws an error when the VM was suspended due to a host suspend.
    62696269             * See @bugref{7836}.
    62706270             */
    6271             /** @todo we need to return an error code when trying to resume a VM (using
    6272              *        "Reason_Unspecified") when the VM has been paused due to
    6273              *        host-suspend. */
    62746271            if (   VMR3GetStateU(ptrVM.rawUVM()) == VMSTATE_SUSPENDED
    62756272                && VMR3GetSuspendReason(ptrVM.rawUVM()) == VMSUSPENDREASON_HOST_SUSPEND)
    6276             {
    6277                 LogRel(("Ignoring VM resume request, VM was paused in response to a host-suspend\n"));
    62786273                return setError(VBOX_E_INVALID_VM_STATE, tr("VM is paused due to host power management"));
    6279             }
    62806274
    62816275            enmReason = aReason == Reason_Snapshot ? VMRESUMEREASON_STATE_SAVED : VMRESUMEREASON_USER;
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