Home
last modified time | relevance | path

Searched refs:log_path (Results 1 – 4 of 4) sorted by relevance

/system/update_engine/cros/
Dlogging.cc39 void SetupLogSymlink(const string& symlink_path, const string& log_path) { in SetupLogSymlink() argument
47 base::FilePath(symlink_path), base::FilePath(log_path), nullptr); in SetupLogSymlink()
50 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) { in SetupLogSymlink()
52 << " pointing at " << log_path; in SetupLogSymlink()
/system/bt/hci/src/
Dbtsnoop.cc172 static std::string get_btsnoop_last_log_path(std::string log_path);
358 auto log_path = get_btsnoop_log_path(filtered); in delete_btsnoop_files() local
359 remove(log_path.c_str()); in delete_btsnoop_files()
360 remove(get_btsnoop_last_log_path(log_path).c_str()); in delete_btsnoop_files()
384 auto log_path = get_btsnoop_log_path(is_btsnoop_filtered); in open_next_snoop_file() local
385 auto last_log_path = get_btsnoop_last_log_path(log_path); in open_next_snoop_file()
387 if (rename(log_path.c_str(), last_log_path.c_str()) != 0 && errno != ENOENT) in open_next_snoop_file()
388 LOG(ERROR) << __func__ << ": unable to rename '" << log_path << "' to '" in open_next_snoop_file()
392 logfile_fd = open(log_path.c_str(), O_WRONLY | O_CREAT | O_TRUNC, in open_next_snoop_file()
396 LOG(ERROR) << __func__ << ": unable to open '" << log_path in open_next_snoop_file()
/system/bt/gd/hal/
Dsnoop_logger.cc91 void delete_btsnoop_files(const std::string& log_path) { in delete_btsnoop_files() argument
93 if (os::FileExists(log_path)) { in delete_btsnoop_files()
94 if (!os::RemoveFile(log_path)) { in delete_btsnoop_files()
95 LOG_ERROR("Failed to remove main log file at \"%s\"", log_path.c_str()); in delete_btsnoop_files()
98 LOG_INFO("Main log file does not exist at \"%s\"", log_path.c_str()); in delete_btsnoop_files()
100 auto last_log_path = get_last_log_path(log_path); in delete_btsnoop_files()
103 LOG_ERROR("Failed to remove last log file at \"%s\"", log_path.c_str()); in delete_btsnoop_files()
106 LOG_INFO("Last log file does not exist at \"%s\"", log_path.c_str()); in delete_btsnoop_files()
/system/update_engine/aosp/
Dlogging_android.cc84 string log_path = kLogsRoot + "/" + old_logs[i]; in DeleteOldLogs() local
85 if (unlink(log_path.c_str()) == -1) { in DeleteOldLogs()
86 PLOG(WARNING) << "Failed to unlink " << log_path; in DeleteOldLogs()