summaryrefslogtreecommitdiffstats
path: root/twrp-functions.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-04-13 19:52:49 +0200
committerDees Troy <dees_troy@teamw.in>2015-05-18 21:02:47 +0200
commit4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c (patch)
tree5796bb3dd438b77a4fe361644c60e84721cff805 /twrp-functions.cpp
parentGUI: Prevent duplicate page overlays (diff)
downloadandroid_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.gz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.bz2
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.lz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.xz
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.tar.zst
android_bootable_recovery-4e0e3fcfdb4f769121678d9bcc28ed3f77b5a36c.zip
Diffstat (limited to 'twrp-functions.cpp')
-rw-r--r--twrp-functions.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/twrp-functions.cpp b/twrp-functions.cpp
index b6f9c56fc..3bc879929 100644
--- a/twrp-functions.cpp
+++ b/twrp-functions.cpp
@@ -487,15 +487,8 @@ void TWFunc::Update_Log_File(void) {
if (Part != NULL) {
struct bootloader_message boot;
memset(&boot, 0, sizeof(boot));
- if (Part->Current_File_System == "mtd") {
- if (set_bootloader_message_mtd_name(&boot, Part->MTD_Name.c_str()) != 0)
- LOGERR("Unable to set MTD bootloader message.\n");
- } else if (Part->Current_File_System == "emmc") {
- if (set_bootloader_message_block_name(&boot, Part->Actual_Block_Device.c_str()) != 0)
- LOGERR("Unable to set emmc bootloader message.\n");
- } else {
- LOGERR("Unknown file system for /misc: '%s'\n", Part->Current_File_System.c_str());
- }
+ if (set_bootloader_message(&boot) != 0)
+ LOGERR("Unable to set bootloader message.\n");
}
if (PartitionManager.Mount_By_Path("/cache", true)) {