From 8954e234c650e7dc1f2010aaec7dd7fef70887e5 Mon Sep 17 00:00:00 2001 From: yanghang Date: Mon, 8 Sep 2025 15:52:43 +0800 Subject: [PATCH] fix: log modification Signed-off-by: yanghang --- services/native/src/power_mgr_service.cpp | 2 +- services/native/src/wakeup/wakeup_controller.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/native/src/power_mgr_service.cpp b/services/native/src/power_mgr_service.cpp index 230a4d11..67bfa3c6 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 ce3dc8ba..2c802936 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); } -- Gitee