mirror of
https://gitee.com/openharmony/startup_init
synced 2025-01-31 00:34:11 +00:00
Description:Code optimization
Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: lwx1281857 <linnanmu@h-partners.com>
This commit is contained in:
parent
b52fdde815
commit
21e393f143
@ -122,7 +122,7 @@ bool DeviceInfoStub::CheckPermission(MessageParcel &data, const std::string &per
|
||||
result = AccessTokenKit::VerifyAccessToken(callerToken, permission);
|
||||
}
|
||||
if (result == TypePermissionState::PERMISSION_DENIED) {
|
||||
DINFO_LOGE("AccessTokenID:%d, permission:%s denied!", callerToken, permission.c_str());
|
||||
DINFO_LOGE("permission:%s denied!", permission.c_str());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
@ -164,7 +164,7 @@ void GetAccessToken(void)
|
||||
};
|
||||
uint64_t tokenId = GetAccessTokenId(&nativeTokenInfoParams);
|
||||
INIT_CHECK_ONLY_ELOG(tokenId != 0,
|
||||
"Get totken id %lld of service \' %s \' failed", tokenId, service->name);
|
||||
"gettotkenid failed, service \' %s \'", service->name);
|
||||
service->tokenId = tokenId;
|
||||
}
|
||||
node = GetNextGroupNode(NODE_TYPE_SERVICES, node);
|
||||
|
Loading…
x
Reference in New Issue
Block a user