diff --git a/services/main.cpp b/services/main.cpp index e492a280be8850b132785f2afbc3c9827e269cab..bb29543ff4619be6fe69489577fc2fcb7f975d11 100644 --- a/services/main.cpp +++ b/services/main.cpp @@ -39,7 +39,7 @@ int main(int argc, char **argv) const int flashBootLength = 10; bool useFlash = memcmp(boot.command, "boot_flash", flashBootLength) == 0; InitUpdaterLogger(useFlash ? "FLASHD" : "UPDATER", TMP_LOG, TMP_STAGE_LOG, TMP_ERROR_CODE_PATH); - SetLogLevel(VERBOSE); + SetLogLevel(INFO); LoadFstab(); STAGE(UPDATE_STAGE_OUT) << "Init Params: " << boot.update; LOG(INFO) << "boot.command " << boot.command; diff --git a/services/ui/progress_bar.cpp b/services/ui/progress_bar.cpp index 4b8f044d4228a2c35edcd9c0bee731dcc42260d3..d3df1185489046e15522ec391f1f13aa89676d78 100644 --- a/services/ui/progress_bar.cpp +++ b/services/ui/progress_bar.cpp @@ -24,21 +24,21 @@ constexpr int DEFAULT_NORMAL_COLOR = 0xFF; constexpr int MAX_PROGRESS_VALUE = 100; constexpr uint32_t DEFAULT_PROGRESS_COLOR = 0x00; -ProgressBar::ProgressBar(const int mStartX, const int mStartY, const int w, const int h, Frame *mParent) +ProgressBar::ProgressBar(const int startX, const int startY, const int w, const int h, Frame *parent) { - startX_ = mStartX; - startY_ = mStartY; + startX_ = startX; + startY_ = startY; this->CreateBuffer(w, h, View::PixelFormat::BGRA888); - parent_ = mParent; + parent_ = parent; SetFocusAble(false); parent_->ViewRegister(this); progressColor_.r = DEFAULT_NORMAL_COLOR; progressColor_.g = DEFAULT_NORMAL_COLOR; progressColor_.b = DEFAULT_NORMAL_COLOR; progressColor_.a = DEFAULT_NORMAL_COLOR; - normalColor_.r = DEFAULT_PROGRESS_COLOR; + normalColor_.r = DEFAULT_NORMAL_COLOR; normalColor_.g = DEFAULT_PROGRESS_COLOR; - normalColor_.b = DEFAULT_NORMAL_COLOR; + normalColor_.b = DEFAULT_PROGRESS_COLOR; normalColor_.a = DEFAULT_NORMAL_COLOR; DrawBackground(); } diff --git a/services/updater.cpp b/services/updater.cpp index caccbbfe39d841618be47c379fb5202e199047dc..9448d4b16ae7c515a1f3708512f578ac8b61b8c4 100644 --- a/services/updater.cpp +++ b/services/updater.cpp @@ -247,7 +247,7 @@ static void HandleChildOutput(const std::string &buffer, int32_t bufferLen, } else if (outputHeader == "set_progress") { HandleProgressSet(output); } else { - LOG(DEBUG) << "Child process returns unexpected message: " << outputHeader; + LOG(WARNING) << "Child process returns unexpected message: " << outputHeader; } }