summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-07-27 07:15:26 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2023-07-27 07:15:26 +0000
commitd97e8bc354410c1e36f5a1c428b30360f96e5529 (patch)
treee9f3ddca03acd275ba10d86334025626235d4b94
parent8900388669540e46a1844175120ae45db69eb08c (diff)
parentc6b1fc26c4f109540e0071af267704c28d1effb3 (diff)
Merge "dumpstate: avoid ':' in lshal files" into main
-rw-r--r--cmds/dumpstate/dumpstate.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index 5cd58056fc..c67fffee32 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -1414,12 +1414,12 @@ static void DumpHals(int out_fd = STDOUT_FILENO) {
auto ret = sm->list([&](const auto& interfaces) {
for (const std::string& interface : interfaces) {
std::string cleanName = interface;
- std::replace_if(cleanName.begin(),
- cleanName.end(),
- [](char c) {
- return !isalnum(c) &&
- std::string("@-_:.").find(c) == std::string::npos;
- }, '_');
+ std::replace_if(
+ cleanName.begin(), cleanName.end(),
+ [](char c) {
+ return !isalnum(c) && std::string("@-_.").find(c) == std::string::npos;
+ },
+ '_');
const std::string path = ds.bugreport_internal_dir_ + "/lshal_debug_" + cleanName;
bool empty = false;