summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-22 05:02:43 +0200
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-22 05:02:43 +0200
commitcb4c4ccd97fda1ef0304d93e562edeb3d99b4dee (patch)
tree7f4f7197da616f38fc71f9bc17191189bc147167
parentSnap for 8429660 from e4bfe4116e91e0d83d1ea4754441f300d71512d6 to udc-release (diff)
parentMerge "Log a copy of recovery log to kernel logs" am: 7c4d5accbf am: a53fa18a23 am: 6fcc0ac1f3 am: a7b67eeac5 am: 31e40084b1 am: f0b4d01d63 (diff)
downloadandroid_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar.gz
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar.bz2
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar.lz
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar.xz
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.tar.zst
android_bootable_recovery-cb4c4ccd97fda1ef0304d93e562edeb3d99b4dee.zip
-rw-r--r--recovery_main.cpp10
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);
}