summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-11-20 05:24:59 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-11-30 04:27:39 +0100
commitb523650c8ecb6751409120a38e52a66a3e48753f (patch)
tree895e254cec518caaefc251950df604c0db0e8381 /twrp-functions.cpp
parentFix libcrypto dependency in 6.0 trees (diff)
parentmerge in nyc-dr1-release history after reset to nyc-dr1-dev (diff)
downloadandroid_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.gz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.bz2
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.lz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.xz
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.tar.zst
android_bootable_recovery-b523650c8ecb6751409120a38e52a66a3e48753f.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index fffd9b738..cbf473016 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -505,10 +505,14 @@ void TWFunc::Update_Log_File(void) {
// Reset bootloader message
TWPartition* Part = PartitionManager.Find_Partition_By_Path("/misc");
if (Part != NULL) {
- struct bootloader_message boot;
- memset(&boot, 0, sizeof(boot));
- if (set_bootloader_message(&boot) != 0)
- LOGERR("Unable to set bootloader message.\n");
+ 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());
+ }
+ }
}
if (PartitionManager.Mount_By_Path("/cache", true)) {