summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-08-17 21:32:31 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-08-17 21:32:31 +0200
commit8a913dfaad2838c7df5911be6ea497b5492edba6 (patch)
tree18c523c128200717aeb8223f97ee821c1106da82
parentMerge "Import translations. DO NOT MERGE" (diff)
parentMerge "update_verifier now logs to kmesg" am: f7ad94313d am: 473606847a am: 8c9c22a3a9 (diff)
downloadandroid_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar.gz
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar.bz2
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar.lz
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar.xz
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.tar.zst
android_bootable_recovery-8a913dfaad2838c7df5911be6ea497b5492edba6.zip
-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 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 <android-base/logging.h>
+
#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);
}