From 21e393f14330c10ecb90fc5fd45d87f8f4df7fab Mon Sep 17 00:00:00 2001 From: lwx1281857 Date: Tue, 20 Aug 2024 21:13:16 +0800 Subject: [PATCH] Description:Code optimization Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: lwx1281857 --- device_info/device_info_stub.cpp | 2 +- services/init/standard/init_service.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/device_info/device_info_stub.cpp b/device_info/device_info_stub.cpp index 6cb3b1f19..0a8803e56 100644 --- a/device_info/device_info_stub.cpp +++ b/device_info/device_info_stub.cpp @@ -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; diff --git a/services/init/standard/init_service.c b/services/init/standard/init_service.c index ffaa59b60..8732add6e 100644 --- a/services/init/standard/init_service.c +++ b/services/init/standard/init_service.c @@ -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);