diff options
| author | 2023-07-27 07:15:26 +0000 | |
|---|---|---|
| committer | 2023-07-27 07:15:26 +0000 | |
| commit | d97e8bc354410c1e36f5a1c428b30360f96e5529 (patch) | |
| tree | e9f3ddca03acd275ba10d86334025626235d4b94 | |
| parent | 8900388669540e46a1844175120ae45db69eb08c (diff) | |
| parent | c6b1fc26c4f109540e0071af267704c28d1effb3 (diff) | |
Merge "dumpstate: avoid ':' in lshal files" into main
| -rw-r--r-- | cmds/dumpstate/dumpstate.cpp | 12 |
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; |