diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2015-10-28 18:44:49 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2015-12-19 15:31:01 +0100 |
commit | 74db157b9406594a549a70415668dd6cbe17d1d3 (patch) | |
tree | d47451181a77cc1b03a55d63d49a9fecc98eb044 /twrpDigest.cpp | |
parent | gui: stock theme rework (diff) | |
download | android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.gz android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.bz2 android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.lz android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.xz android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.tar.zst android_bootable_recovery-74db157b9406594a549a70415668dd6cbe17d1d3.zip |
Diffstat (limited to '')
-rw-r--r-- | twrpDigest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/twrpDigest.cpp b/twrpDigest.cpp index 8380d2c8b..fe0e06778 100644 --- a/twrpDigest.cpp +++ b/twrpDigest.cpp @@ -19,7 +19,6 @@ extern "C" { #include "digest/md5.h" - #include "gui/gui.h" #include "libcrecovery/common.h" } @@ -41,6 +40,7 @@ extern "C" #include "twrp-functions.hpp" #include "twrpDigest.hpp" #include "set_metadata.h" +#include "gui/gui.hpp" using namespace std; @@ -103,10 +103,10 @@ int twrpDigest::read_md5digest(void) { } if (!foundMd5File) { - gui_print("Skipping MD5 check: no MD5 file found\n"); + gui_msg("no_md5=Skipping MD5 check: no MD5 file found"); return -1; } else if (TWFunc::read_file(md5file, line) != 0) { - gui_print("Skipping MD5 check: MD5 file unreadable\n"); + LOGERR("Skipping MD5 check: MD5 file unreadable %s\n", strerror(errno)); return 1; } @@ -139,10 +139,10 @@ int twrpDigest::verify_md5digest(void) { md5string += hex; } if (tokens.at(0) != md5string) { - LOGERR("MD5 does not match\n"); + gui_err("md5_fail=MD5 does not match"); return -2; } - gui_print("MD5 matched\n"); + gui_msg("md5_match=MD5 matched"); return 0; } |