From 3b307a9493ba3f5e0e22f2dfc9c1029ddd9dd53d Mon Sep 17 00:00:00 2001 From: maweiye Date: Tue, 23 Nov 2021 21:02:19 +0800 Subject: [PATCH] change lld to PRId64 Signed-off-by: maweiye --- services/native/src/shutdown_service.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/native/src/shutdown_service.cpp b/services/native/src/shutdown_service.cpp index 5847af3a..54cc3e87 100644 --- a/services/native/src/shutdown_service.cpp +++ b/services/native/src/shutdown_service.cpp @@ -19,7 +19,7 @@ #include #include #include - +#include #include #include #include @@ -158,14 +158,14 @@ void ShutdownService::CallbackManager::WaitingCallback() make_unique(std::move(callbackTask))->detach(); time_t begin = time(nullptr); POWER_HILOGI(MODULE_SERVICE, "Waiting for the callback execution is complete..." - " begin = %{public}ld, callback size: %{public}zu", begin, callbacks_.size()); + " begin = %{public}" PRId64 ", callback size: %{public}zu", begin, callbacks_.size()); future_status status = fut.wait_for(std::chrono::seconds(MAX_TIMEOUT_SEC)); if (status == future_status::timeout) { POWER_HILOGW(MODULE_SERVICE, "Shutdown callback execution timedout!"); } time_t end = time(nullptr); - POWER_HILOGI(MODULE_SERVICE, "The callback execution is complete. begin = %{public}ld, end = %{public}ld," - " Execution Time(s): %{public}ld", begin, end, (end - begin)); + POWER_HILOGI(MODULE_SERVICE, "The callback execution is complete. begin = %{public}" PRId64 "," + " end = %{public}" PRId64 ", Execution Time(s): %{public}" PRId64, begin, end, (end - begin)); } } // namespace PowerMgr } // namespace OHOS -- Gitee