diff --git a/services/updater_main.cpp b/services/updater_main.cpp index 470fd6d41074f7fb7d95ea58aa708a9ad4de19e7..f4dd25867e794180facd391b66cc833b6ee08b61 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 699df7ee794b417234a1b392cf3effdcabb0332d..f35ca0e8ca1a77e4979ae90439cfd31ab15a747a 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 }