From dfaa06c288f7464f0d4459875e9d4023bc55f6ef Mon Sep 17 00:00:00 2001 From: Yunli Liu Date: Wed, 14 Feb 2024 09:50:36 +0800 Subject: [PATCH] fix arm64 compile error modified: services/abilitymgr/src/ecological_rule/ ability_ecological_rule_mgr_service.cpp foundation/ability/ability_runtime/services/abilitymgr/src/ecological_rule/ ability_ecological_rule_mgr_service.cpp:144:95: error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Werror,-Wformat] Change-Id: I767a2a3ba90ab7f0da9e3314895682b7d85c032c Signed-off-by: Yunli Liu --- .../ecological_rule/ability_ecological_rule_mgr_service.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp b/services/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp index 529ae40104b..b8dd8abaa63 100644 --- a/services/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp +++ b/services/abilitymgr/src/ecological_rule/ability_ecological_rule_mgr_service.cpp @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +#include #include "ecological_rule/ability_ecological_rule_mgr_service.h" #include "iservice_registry.h" @@ -116,7 +116,7 @@ int32_t AbilityEcologicalRuleMgrServiceClient::EvaluateResolveInfos(const AAFwk: } int32_t res = ecologicalRuleMgrServiceProxy_->EvaluateResolveInfos(want, callerInfo, type, abilityInfos); int64_t cost = GetCurrentTimeMicro() - start; - HILOG_DEBUG("[ERMS-DFX] EvaluateResolveInfos interface cost %{public}lld mirco seconds.", cost); + HILOG_DEBUG("[ERMS-DFX] EvaluateResolveInfos interface cost %{public}" PRId64 " mirco seconds.", cost); return res; } @@ -141,7 +141,7 @@ int32_t AbilityEcologicalRuleMgrServiceClient::QueryStartExperience(const OHOS:: rule.isAllow, rule.sceneCode.c_str(), (*(rule.replaceWant)).ToString().c_str()); } int64_t cost = GetCurrentTimeMicro() - start; - HILOG_DEBUG("[ERMS-DFX] QueryStartExperience interface cost %{public}lld mirco seconds.", cost); + HILOG_DEBUG("[ERMS-DFX] QueryStartExperience interface cost %{public}" PRId64 "mirco seconds.", cost); return res; } -- Gitee