From 0323640c2c2014d4e4574cb69d76a7e48bcc8e7d Mon Sep 17 00:00:00 2001 From: chen Date: Wed, 18 May 2022 16:05:23 +0800 Subject: [PATCH] add log for setcontext Signed-off-by: chen Change-Id: Iaaf4a2caa0d117847ca5890b0b60b7ef1f8ba59f --- services/samgr/native/source/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/samgr/native/source/main.cpp b/services/samgr/native/source/main.cpp index 820b6b8d..0f6e74bb 100644 --- a/services/samgr/native/source/main.cpp +++ b/services/samgr/native/source/main.cpp @@ -29,7 +29,10 @@ int main(int argc, char *argv[]) OHOS::sptr manager = OHOS::SystemAbilityManager::GetInstance(); manager->Init(); OHOS::sptr serv = manager->AsObject(); - IPCSkeleton::SetContextObject(serv); + + if (!IPCSkeleton::SetContextObject(serv)) { + HILOGE("set context fail!"); // add log for dfx + } HILOGI("start System Ability Manager Loop"); OHOS::IPCSkeleton::JoinWorkThread(); -- Gitee