Description:Code optimization

Feature or Bugfix:Bugfix
Binary Source:No

Signed-off-by: lwx1281857 <linnanmu@h-partners.com>
This commit is contained in:
lwx1281857 2024-08-20 21:13:16 +08:00
parent b52fdde815
commit 21e393f143
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);