universal7885: debug_daemon: fix duplicate symbols

Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
roynatech2544 2021-12-14 14:15:10 +09:00
commit 941eae5af8
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
2 changed files with 4 additions and 4 deletions

View file

@ -22,7 +22,7 @@
#include <log/log.h>
#include <fstream>
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();