diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2022-04-21 09:47:00 +0200 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-04-21 09:47:00 +0200 |
commit | 6fcc0ac1f356853ff9459cc9c47af8aacdb1b959 (patch) | |
tree | 40f650cc9122121b67da033f7e091ae74992c30d | |
parent | [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 0f3b76b764 (diff) | |
parent | Merge "Log a copy of recovery log to kernel logs" am: 7c4d5accbf (diff) | |
download | android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar.gz android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar.bz2 android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar.lz android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar.xz android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.tar.zst android_bootable_recovery-6fcc0ac1f356853ff9459cc9c47af8aacdb1b959.zip |
-rw-r--r-- | recovery_main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp index 80cba61d3..9a358aba7 100644 --- a/recovery_main.cpp +++ b/recovery_main.cpp @@ -73,12 +73,12 @@ static bool IsDeviceUnlocked() { return "orange" == android::base::GetProperty("ro.boot.verifiedbootstate", ""); } -static void UiLogger(android::base::LogId /* id */, android::base::LogSeverity severity, - const char* /* tag */, const char* /* file */, unsigned int /* line */, - const char* message) { - static constexpr char log_characters[] = "VDIWEF"; +static void UiLogger(android::base::LogId log_buffer_id, android::base::LogSeverity severity, + const char* tag, const char* file, unsigned int line, const char* message) { + android::base::KernelLogger(log_buffer_id, severity, tag, file, line, message); + static constexpr auto&& log_characters = "VDIWEF"; if (severity >= android::base::ERROR && ui != nullptr) { - ui->Print("E:%s\n", message); + ui->Print("ERROR: %10s: %s\n", tag, message); } else { fprintf(stdout, "%c:%s\n", log_characters[severity], message); } |