diff options
| author | 2018-12-10 11:03:27 +0000 | |
|---|---|---|
| committer | 2018-12-10 11:03:27 +0000 | |
| commit | 117dd2fdea9fdf6ae90a5ad8832b4aa7bcfa52da (patch) | |
| tree | 754651ea621da6348bce7332449549272ed870d9 /cmds/dumpstate/utils.cpp | |
| parent | 5f7692f5b2cccb5226985fba22b640042508c82e (diff) | |
| parent | 979388ef5d5876a63679ee04da9ded996817f04f (diff) | |
Merge "Accept a file descriptor to write bugreport file"
Diffstat (limited to 'cmds/dumpstate/utils.cpp')
| -rw-r--r-- | cmds/dumpstate/utils.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.cpp b/cmds/dumpstate/utils.cpp index 6cbb691676..d97ffbf2ed 100644 --- a/cmds/dumpstate/utils.cpp +++ b/cmds/dumpstate/utils.cpp @@ -229,7 +229,11 @@ bool Dumpstate::IsZipping() const { } std::string Dumpstate::GetPath(const std::string& suffix) const { - return android::base::StringPrintf("%s/%s-%s%s", bugreport_dir_.c_str(), base_name_.c_str(), + return GetPath(bugreport_internal_dir_, suffix); +} + +std::string Dumpstate::GetPath(const std::string& directory, const std::string& suffix) const { + return android::base::StringPrintf("%s/%s-%s%s", directory.c_str(), base_name_.c_str(), name_.c_str(), suffix.c_str()); } |