Home
last modified time | relevance | path

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

/system/bt/hci/src/
Dbtsnoop.c163 const char *log_path = stack_config->get_btsnoop_log_path(); in update_logging() local
168 snprintf(last_log_path, PATH_MAX, "%s.%" PRIu64, log_path, in update_logging()
170 if (!rename(log_path, last_log_path) && errno != ENOENT) in update_logging()
171 …LOG_ERROR(LOG_TAG, "%s unable to rename '%s' to '%s': %s", __func__, log_path, last_log_path, stre… in update_logging()
174 …logfile_fd = open(log_path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | … in update_logging()
176 LOG_ERROR(LOG_TAG, "%s unable to open '%s': %s", __func__, log_path, strerror(errno)); in update_logging()
/system/update_engine/
Dmain.cc41 void SetupLogSymlink(const string& symlink_path, const string& log_path) { in SetupLogSymlink() argument
49 base::FilePath(log_path), in SetupLogSymlink()
53 if (symlink(log_path.c_str(), symlink_path.c_str()) == -1) { in SetupLogSymlink()
55 << " pointing at " << log_path; in SetupLogSymlink()
/system/core/crash_reporter/
Duser_collector.cc202 FilePath log_path = GetCrashPath(crash_path, dump_basename, "log"); in EnqueueCollectionErrorLog() local
207 if (WriteNewFile(log_path, error_log.data(), error_log.length()) < 0) { in EnqueueCollectionErrorLog()
208 LOG(ERROR) << "Error writing new file " << log_path.value(); in EnqueueCollectionErrorLog()
211 WriteCrashMetaData(meta_path, exec, log_path.value()); in EnqueueCollectionErrorLog()
503 FilePath log_path = GetCrashPath(crash_path, dump_basename, "log"); in ConvertAndEnqueueCrash() local
505 if (GetLogContents(FilePath(log_config_path_), exec, log_path)) in ConvertAndEnqueueCrash()
506 AddCrashMetaData("log", log_path.value()); in ConvertAndEnqueueCrash()
Dudev_collector.cc182 FilePath log_path = GetCrashPath(crash_directory, dump_basename, "log"); in AppendDevCoredump() local
195 bool result = GetLogContents(log_config_path_, udev_log_name, log_path); in AppendDevCoredump()
197 AddCrashMetaUploadFile("logs", log_path.value()); in AppendDevCoredump()