Clear_Bootloader_Message(): Log non-fatal errors at level INFO.

This fixes a cosmetic issue on Samsung devices, namely that
Clear_Bootloader_Message() returns an error reading the fstab, which
actually doesn't matter, because the fstab has already been read and
parsed by the time Clear_Bootloader_Message() is called.

Change-Id: I35e508f24d81f66bdaa56006cece9082178c0ba9
This commit is contained in:
Ian Macdonald
2020-11-02 08:52:32 +01:00
committed by bigbiff
parent eb4d8b8818
commit d485182c87
+1 -5
View File
@@ -632,11 +632,7 @@ void TWFunc::Update_Log_File(void) {
void TWFunc::Clear_Bootloader_Message() {
std::string err;
if (!clear_bootloader_message(&err)) {
if (err == "no misc device set") {
LOGINFO("%s\n", err.c_str());
} else {
LOGERR("%s\n", err.c_str());
}
LOGINFO("%s\n", err.c_str());
}
}