From 941eae5af88daa8de0982419171794680ac73136 Mon Sep 17 00:00:00 2001 From: roynatech2544 Date: Tue, 14 Dec 2021 14:15:10 +0900 Subject: [PATCH] universal7885: debug_daemon: fix duplicate symbols Signed-off-by: roynatech2544 --- universal7885-common/debug/Kmsg.cpp | 4 ++-- universal7885-common/debug/Logcat.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/universal7885-common/debug/Kmsg.cpp b/universal7885-common/debug/Kmsg.cpp index 43e68d3..ab9ca31 100644 --- a/universal7885-common/debug/Kmsg.cpp +++ b/universal7885-common/debug/Kmsg.cpp @@ -22,7 +22,7 @@ #include #include -bool check_data() { +bool check_data_kmsg() { std::ifstream datafile(CHECK_KMSG); if (datafile.good()) { datafile.close(); @@ -35,7 +35,7 @@ bool check_data() { } void copy_kmsg() { - if (check_data()) { + if (check_data_kmsg()) { std::ifstream readfile(KMSG_PATH); std::ofstream writefile(WRITE_KMSG); writefile << readfile.rdbuf(); diff --git a/universal7885-common/debug/Logcat.cpp b/universal7885-common/debug/Logcat.cpp index 2dbd6a1..5d8d6b8 100644 --- a/universal7885-common/debug/Logcat.cpp +++ b/universal7885-common/debug/Logcat.cpp @@ -22,7 +22,7 @@ #include #include -bool check_data() { +bool check_data_logcat() { std::ifstream datafile(CHECK_LOGCAT); if (datafile.good()) { datafile.close(); @@ -35,7 +35,7 @@ bool check_data() { } void copy_logcat() { - if (check_data()) { + if (check_data_logcat()) { system("/system/bin/logcat -f /data/debug/logs/logcat.txt"); } }