Lines Matching full:c_str
203 systrace_path.c_str());
205 systrace_path.c_str(), NULL)) {
215 MYLOGE("Unable to add systrace file %s to zip file\n", systrace_path.c_str());
217 if (remove(systrace_path.c_str())) {
218 MYLOGE("Error removing systrace file %s: %s", systrace_path.c_str(), strerror(errno));
247 "-o", raft_log_path.c_str(), NULL);
249 MYLOGE("Unable to add raft log %s to zip file\n", raft_log_path.c_str());
251 if (remove(raft_log_path.c_str())) {
252 MYLOGE("Error removing raft file %s: %s\n", raft_log_path.c_str(), strerror(errno));
564 printf("Bugreport format version: %s\n", version.c_str());
580 entry_name.c_str());
592 MYLOGI("Renaming entry %s to %s\n", entry_name.c_str(), valid_name.c_str());
597 // MYLOGD("Adding zip entry %s\n", entry_name.c_str());
598 int32_t err = zip_writer->StartEntryWithTime(valid_name.c_str(),
601 MYLOGE("zip_writer->StartEntryWithTime(%s): %s\n", valid_name.c_str(),
612 MYLOGE("read(%s): %s\n", entry_name.c_str(), strerror(errno));
632 ScopedFd fd(TEMP_FAILURE_RETRY(open(entry_path.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC)));
634 MYLOGE("open(%s): %s\n", entry_path.c_str(), strerror(errno));
664 MYLOGD("Not adding text entry %s because dumpstate is not zipping\n", entry_name.c_str());
667 MYLOGD("Adding zip text entry %s\n", entry_name.c_str());
668 int32_t err = zip_writer->StartEntryWithTime(entry_name.c_str(), ZipWriter::kCompress, now);
670 MYLOGE("zip_writer->StartEntryWithTime(%s): %s\n", entry_name.c_str(),
675 err = zip_writer->WriteBytes(content.c_str(), content.length());
677 MYLOGE("zip_writer->WriteBytes(%s): %s\n", entry_name.c_str(),
742 MYLOGI("wrote screenshot: %s\n", screenshot_path.c_str());
1020 VERSION_DEFAULT.c_str());
1049 MYLOGD("Removing temporary file %s\n", bugreport_path.c_str())
1050 if (remove(bugreport_path.c_str())) {
1051 ALOGW("remove(%s): %s\n", bugreport_path.c_str(), strerror(errno));
1054 MYLOGD("Keeping temporary file %s on non-user build\n", bugreport_path.c_str())
1061 ScopedFd fd(TEMP_FAILURE_RETRY(open(filepath.c_str(), O_RDONLY | O_NONBLOCK | O_CLOEXEC
1064 MYLOGE("open(%s): %s\n", filepath.c_str(), strerror(errno));
1077 MYLOGE("read(%s): %s\n", filepath.c_str(), strerror(errno));
1144 MYLOGD("Dumpstate command line: %s\n", args.c_str());
1192 MYLOGI("bugreport format version: %s\n", version.c_str());
1261 bugreport_dir.c_str(), base_name.c_str(), suffix.c_str(),
1262 log_path.c_str(), tmp_path.c_str(), screenshot_path.c_str());
1266 MYLOGD("Creating initial .zip file (%s)\n", path.c_str());
1267 create_parent_dirs(path.c_str());
1268 zip_file.reset(fopen(path.c_str(), "wb"));
1270 MYLOGE("fopen(%s, 'wb'): %s\n", path.c_str(), strerror(errno));
1292 dprintf(control_socket_fd, "BEGIN:%s\n", path.c_str());
1320 MYLOGI("wrote screenshot: %s\n", screenshot_path.c_str());
1321 if (chown(screenshot_path.c_str(), AID_SHELL, AID_SHELL)) {
1323 screenshot_path.c_str(), strerror(errno));
1329 if (chown(path.c_str(), AID_SHELL, AID_SHELL)) {
1330 MYLOGE("Unable to change ownership of zip file %s: %s\n", path.c_str(), strerror(errno));
1335 redirect_to_file(stderr, const_cast<char*>(log_path.c_str()));
1336 if (chown(log_path.c_str(), AID_SHELL, AID_SHELL)) {
1338 log_path.c_str(), strerror(errno));
1343 redirect_to_file(stdout, const_cast<char*>(tmp_path.c_str()));
1344 if (chown(tmp_path.c_str(), AID_SHELL, AID_SHELL)) {
1346 tmp_path.c_str(), strerror(errno));
1416 MYLOGI("changing suffix from %s to %s\n", suffix.c_str(), value);
1421 if (rename(screenshot_path.c_str(), new_screenshot_path.c_str())) {
1422 MYLOGE("rename(%s, %s): %s\n", screenshot_path.c_str(),
1423 new_screenshot_path.c_str(), strerror(errno));
1433 MYLOGD("Adding main entry (%s) to .zip bugreport\n", entry_name.c_str());
1442 MYLOGD("Renaming zip file from %s to %s\n", path.c_str(), new_path.c_str());
1443 if (rename(path.c_str(), new_path.c_str())) {
1444 MYLOGE("rename(%s, %s): %s\n", path.c_str(),
1445 new_path.c_str(), strerror(errno));
1454 MYLOGD("Generating .txt bugreport at %s from %s\n", path.c_str(), tmp_path.c_str());
1455 if (rename(tmp_path.c_str(), path.c_str())) {
1456 MYLOGE("rename(%s, %s): %s\n", tmp_path.c_str(), path.c_str(), strerror(errno));
1463 "for more details\n", log_path.c_str());
1465 dprintf(control_socket_fd, "OK:%s\n", path.c_str());
1481 MYLOGI("Final bugreport path: %s\n", path.c_str());