From a009ce05e28f83d1bf7e5bb48f7a094d888b5aa6 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Tue, 15 Aug 2017 11:45:49 -0700 Subject: update_verifier now logs to kmesg Set up update_verifier logging to be written to kmsg; because we may not have Logd during boot time. Bug: 64713327 Test: logs show up in `adb shell dmesg` Change-Id: If02f460bda121cd3e9062bc0e08107c6da66492c --- update_verifier/update_verifier_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/update_verifier/update_verifier_main.cpp b/update_verifier/update_verifier_main.cpp index 46e8bbb59..9dd5a0cc4 100644 --- a/update_verifier/update_verifier_main.cpp +++ b/update_verifier/update_verifier_main.cpp @@ -16,8 +16,14 @@ // See the comments in update_verifier.cpp. +#include + #include "update_verifier/update_verifier.h" int main(int argc, char** argv) { + // Set up update_verifier logging to be written to kmsg; because we may not have Logd during + // boot time. + android::base::InitLogging(argv, &android::base::KernelLogger); + return update_verifier(argc, argv); } -- cgit v1.2.3