From d485182c87d89842fe9de85dd6f06eb6966b3428 Mon Sep 17 00:00:00 2001 From: Ian Macdonald Date: Mon, 2 Nov 2020 08:52:32 +0100 Subject: [PATCH] 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 --- twrp-functions.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/twrp-functions.cpp b/twrp-functions.cpp index 694c9bba..8b009517 100755 --- a/twrp-functions.cpp +++ b/twrp-functions.cpp @@ -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()); } }