From 3a9920df4692c1ec164148a491131c30543eb870 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Tue, 14 Dec 2021 15:28:58 +0900 Subject: [PATCH] universal7885: debug_daemon: remove liblog deps Signed-off-by: roynatech2544 --- universal7885-common/debug/Android.bp | 3 --- universal7885-common/debug/Kmsg.cpp | 4 ---- universal7885-common/debug/Logcat.cpp | 4 ---- 3 files changed, 11 deletions(-) diff --git a/universal7885-common/debug/Android.bp b/universal7885-common/debug/Android.bp index 0a1458d..0a4c5de 100644 --- a/universal7885-common/debug/Android.bp +++ b/universal7885-common/debug/Android.bp @@ -22,8 +22,5 @@ cc_binary { "Logcat.cpp", "Main.cpp", ], - shared_libs: [ - "liblog", - ], init_rc: ["init.debug_daemon.rc"], } diff --git a/universal7885-common/debug/Kmsg.cpp b/universal7885-common/debug/Kmsg.cpp index ab9ca31..72cefa4 100644 --- a/universal7885-common/debug/Kmsg.cpp +++ b/universal7885-common/debug/Kmsg.cpp @@ -17,19 +17,15 @@ #define KMSG_PATH "/proc/kmsg" #define CHECK_KMSG "/data/debug/kmsg" #define WRITE_KMSG "/data/debug/logs/kmsg.txt" -#define LOG_TAG "DebugKmsgDaemon" -#include #include bool check_data_kmsg() { std::ifstream datafile(CHECK_KMSG); if (datafile.good()) { datafile.close(); - ALOGI("Found %s, logging...", CHECK_KMSG); return true; } else { - ALOGW("Couldn't find %s, not logging...", CHECK_KMSG); return false; } } diff --git a/universal7885-common/debug/Logcat.cpp b/universal7885-common/debug/Logcat.cpp index 5d8d6b8..d777280 100644 --- a/universal7885-common/debug/Logcat.cpp +++ b/universal7885-common/debug/Logcat.cpp @@ -16,9 +16,7 @@ #define CHECK_LOGCAT "/data/debug/logcat" #define WRITE_LOGCAT "/data/debug/logs/logcat.txt" -#define LOG_TAG "DebugLogcatDaemon" -#include #include #include @@ -26,10 +24,8 @@ bool check_data_logcat() { std::ifstream datafile(CHECK_LOGCAT); if (datafile.good()) { datafile.close(); - ALOGI("Found %s, logging...", CHECK_LOGCAT); return true; } else { - ALOGW("Couldn't find %s, not logging...", CHECK_LOGCAT); return false; } }