[core] Align lines when printing module scope list (#68)

* Without this commit, the lines are printed like this:

   02-03 21:00:20.488   987   987 I LSPosed : scope of com.mhook.dialog.beta is:
   02-03 21:00:20.488   987   987 I LSPosed : com.bug.zqq
   02-03 21:00:20.488   987   987 I LSPosed :   com.tencent.mobileqq
   02-03 21:00:20.488   987   987 I LSPosed :   com.heytap.themestore
   02-03 21:00:20.488   987   987 I LSPosed :   com.mhook.dialog.beta
This commit is contained in:
Wang Han 2021-02-04 22:58:15 +08:00 committed by GitHub
parent 592ad73500
commit fc1bf22eda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ namespace lspd {
scope.emplace(std::move(app_pkg_name));
}
if (IsInstaller(module_pkg_name)) scope.erase("android");
LOGI("scope of %s is:\n%s", module_pkg_name.c_str(), ([&scope = scope]() {
LOGI("scope of %s is:\n %s", module_pkg_name.c_str(), ([&scope = scope]() {
std::ostringstream join;
std::copy(scope.begin(), scope.end(),
std::ostream_iterator<std::string>(join, "\n "));