aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2017-08-15 13:45:49 -0500
committerTianjie Xu2017-08-15 13:57:17 -0500
commita009ce05e28f83d1bf7e5bb48f7a094d888b5aa6 (patch)
treec19b52697b0f414314f451d7e53fca68513f2d2b /update_verifier/update_verifier_main.cpp
parent11214d9062bc678c6b695dabe01d5af7f70dc5cc (diff)
downloadplatform-bootable-recovery-a009ce05e28f83d1bf7e5bb48f7a094d888b5aa6.tar.gz
platform-bootable-recovery-a009ce05e28f83d1bf7e5bb48f7a094d888b5aa6.tar.xz
platform-bootable-recovery-a009ce05e28f83d1bf7e5bb48f7a094d888b5aa6.zip
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
Diffstat (limited to 'update_verifier/update_verifier_main.cpp')
-rw-r--r--update_verifier/update_verifier_main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/update_verifier/update_verifier_main.cpp b/update_verifier/update_verifier_main.cpp
index 46e8bbb5..9dd5a0cc 100644
--- a/update_verifier/update_verifier_main.cpp
+++ b/update_verifier/update_verifier_main.cpp
@@ -16,8 +16,14 @@
16 16
17// See the comments in update_verifier.cpp. 17// See the comments in update_verifier.cpp.
18 18
19#include <android-base/logging.h>
20
19#include "update_verifier/update_verifier.h" 21#include "update_verifier/update_verifier.h"
20 22
21int main(int argc, char** argv) { 23int main(int argc, char** argv) {
24 // Set up update_verifier logging to be written to kmsg; because we may not have Logd during
25 // boot time.
26 android::base::InitLogging(argv, &android::base::KernelLogger);
27
22 return update_verifier(argc, argv); 28 return update_verifier(argc, argv);
23} 29}