From d6441a56a5cc5d24fb548cf8d995020f75eafcb9 Mon Sep 17 00:00:00 2001 From: liaoxianyi Date: Thu, 26 Dec 2024 03:36:06 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liaoxianyi --- services/updater_main.cpp | 13 ++++++++++++- services/updater_main.h | 2 ++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/services/updater_main.cpp b/services/updater_main.cpp index 470fd6d4..f4dd2586 100644 --- a/services/updater_main.cpp +++ b/services/updater_main.cpp @@ -835,6 +835,16 @@ __attribute__((weak)) bool IsNeedWipe() return false; } +__attribute__((weak)) void PrintAllCpuFreq() +{ + LOG(INFO) << "No need to print cup freq"; +} + +__attribute__((weak)) void GetZonelTemp() +{ + LOG(INFO) << "No need to print zonel temp"; +} + void RebootAfterUpdateSuccess(const UpdaterParams &upParams) { if (IsNeedWipe() || @@ -861,7 +871,8 @@ int UpdaterMain(int argc, char **argv) upParams.callbackProgress = [] (float value) { UPDATER_UI_INSTANCE.ShowProgress(value); }; UpdaterInit::GetInstance().InvokeEvent(UPDATER_PRE_INIT_EVENT); std::vector args = ParseParams(argc, argv); - + PrintAllCpuFreq(); + GetZonelTemp(); LOG(INFO) << "Ready to start"; #if !defined(UPDATER_UT) && defined(UPDATER_UI_SUPPORT) UPDATER_UI_INSTANCE.InitEnv(); diff --git a/services/updater_main.h b/services/updater_main.h index 699df7ee..f35ca0e8 100644 --- a/services/updater_main.h +++ b/services/updater_main.h @@ -70,6 +70,8 @@ int32_t VerifySpecialPkgs([[maybe_unused]]UpdaterParams &upParams); void UpdaterVerifyFailEntry(bool verifyret); bool IsSpareBoardBoot(void); bool IsNeedWipe(); +void PrintAllCpuFreq(); +void GetZonelTemp(); #ifdef __cplusplus #if __cplusplus } -- Gitee