Skip to content

Commit

Permalink
DELIA-51365 : setPowerState additional logging
Browse files Browse the repository at this point in the history
Reason for change:
setPowerState_additional_logging
Test Procedure: None
Risks: Low

Change-Id: Ie7c117820fafc8086078f1ca4f39771f79e4f553
Signed-off-by:Anooj Cheriyan <[email protected]>
(cherry picked from commit 355e7dd)
  • Loading branch information
acheri988 committed Jul 23, 2021
1 parent 949ba35 commit adc815d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SystemServices/SystemServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2925,7 +2925,7 @@ namespace WPEFramework {
string reason = parameters["standbyReason"].String();
/* Power state defaults standbyReason is "application". */
reason = ((reason.length()) ? reason : "application");

LOGERR("SystemServices::setDevicePowerState state: %s\n", state.c_str());
if (state == "STANDBY") {
if (SystemServices::_instance) {
SystemServices::_instance->getPreferredStandbyMode(paramIn, paramOut);
Expand All @@ -2950,7 +2950,6 @@ namespace WPEFramework {
}
} else {
retVal = CPowerState::instance()->setPowerState(state);
LOGERR("this platform has no API System and/or Powerstate\n");
}
} else {
populateResponseWithError(SysSrv_MissingKeyValues, response);
Expand Down

0 comments on commit adc815d

Please sign in to comment.