mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: debug_daemon: run clang-format
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
c4f1f10454
commit
7db5c03bac
3 changed files with 19 additions and 21 deletions
|
|
@ -18,25 +18,24 @@
|
|||
#define WRITE_LOGCAT "/data/debug/logs/logcat.txt"
|
||||
#define LOG_TAG "DebugLogcatDaemon"
|
||||
|
||||
#include <fstream>
|
||||
#include <log/log.h>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
bool check_data(){
|
||||
bool check_data() {
|
||||
std::ifstream datafile(CHECK_LOGCAT);
|
||||
if(datafile.good()){
|
||||
datafile.close();
|
||||
if (datafile.good()) {
|
||||
datafile.close();
|
||||
ALOGI("Found %s, logging...", CHECK_LOGCAT);
|
||||
return true;
|
||||
}else{
|
||||
} else {
|
||||
ALOGW("Couldn't find %s, not logging...", CHECK_LOGCAT);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void copy_logcat(){
|
||||
if(check_data()){
|
||||
system("/system/bin/logcat -f /data/debug/logs/logcat.txt");
|
||||
void copy_logcat() {
|
||||
if (check_data()) {
|
||||
system("/system/bin/logcat -f /data/debug/logs/logcat.txt");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue