diff --git a/services/native/src/power_mgr_service.cpp b/services/native/src/power_mgr_service.cpp index 230a4d11bce46cb5003e18747d25e3a3c8907c8c..67bfa3c62ed022e900e8fc65eea8151c117235b1 100644 --- a/services/native/src/power_mgr_service.cpp +++ b/services/native/src/power_mgr_service.cpp @@ -1176,7 +1176,7 @@ PowerErrors PowerMgrService::WakeupDevice( POWER_HILOGI(FEATURE_WAKEUP, "[UL_POWER] Try to wakeup device, pid: %{public}d, uid: %{public}d", pid, uid); - BackgroundRunningLock wakeupRunningLock("WakeupLock", WAKEUP_LOCK_TIMEOUT_MS); + BackgroundRunningLock wakeupRunningLock("W", WAKEUP_LOCK_TIMEOUT_MS); if (details == "display_doze") { bool ret = powerStateMachine_->SetDozeMode(DisplayState::DISPLAY_DOZE); return ret ? PowerErrors::ERR_OK : PowerErrors::ERR_FAILURE; diff --git a/services/native/src/wakeup/wakeup_controller.cpp b/services/native/src/wakeup/wakeup_controller.cpp index ce3dc8ba7f285b0654d3cde0baab69dfa759d366..2c80293624fd63c95c0a084a8ed0ac3de1ef51e1 100644 --- a/services/native/src/wakeup/wakeup_controller.cpp +++ b/services/native/src/wakeup/wakeup_controller.cpp @@ -492,7 +492,7 @@ WakeupController::SleepGuard::SleepGuard(const sptr& pms) : pms POWER_HILOGE(COMP_SVC, "create runninglock token failed"); return; } - RunningLockInfo info = {"SleepGuard", OHOS::PowerMgr::RunningLockType::RUNNINGLOCK_BACKGROUND_TASK}; + RunningLockInfo info = {"S", OHOS::PowerMgr::RunningLockType::RUNNINGLOCK_BACKGROUND_TASK}; pms_->CreateRunningLock(token_, info); pms_->Lock(token_, WAKEUP_LOCK_TIMEOUT_MS); }