summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'init/watchdogd.cpp')
-rw-r--r--init/watchdogd.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/init/watchdogd.cpp b/init/watchdogd.cpp
index e0164b419..e03a2c31d 100644
--- a/init/watchdogd.cpp
+++ b/init/watchdogd.cpp
@@ -23,8 +23,6 @@
23 23
24#include <android-base/logging.h> 24#include <android-base/logging.h>
25 25
26#include "log.h"
27
28#ifdef _INIT_INIT_H 26#ifdef _INIT_INIT_H
29#error "Do not include init.h in files used by ueventd or watchdogd; it will expose init's globals" 27#error "Do not include init.h in files used by ueventd or watchdogd; it will expose init's globals"
30#endif 28#endif
@@ -35,7 +33,7 @@ namespace android {
35namespace init { 33namespace init {
36 34
37int watchdogd_main(int argc, char **argv) { 35int watchdogd_main(int argc, char **argv) {
38 InitKernelLogging(argv); 36 android::base::InitLogging(argv, &android::base::KernelLogger);
39 37
40 int interval = 10; 38 int interval = 10;
41 if (argc >= 2) interval = atoi(argv[1]); 39 if (argc >= 2) interval = atoi(argv[1]);