Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f63792b9 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android (Google) Code Review
Browse files

Merge "Use the exported log severity characters." into main

parents 67e7b29c bf603350
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -76,11 +76,10 @@ static bool IsDeviceUnlocked() {
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("ERROR: %10s: %s\n", tag, message);
  } else {
    fprintf(stdout, "%c:%s\n", log_characters[severity], message);
    fprintf(stdout, "%c:%s\n", android::base::kSeverityChars[severity], message);
  }
}