diff --git a/services/bundlemgr/src/bundle_data_mgr.cpp b/services/bundlemgr/src/bundle_data_mgr.cpp index 2a367a49e0122f7604f0c9f8ef413e8ccd4d7f14..8be25977171734611c7bcc509724eff86a613f7c 100644 --- a/services/bundlemgr/src/bundle_data_mgr.cpp +++ b/services/bundlemgr/src/bundle_data_mgr.cpp @@ -2742,12 +2742,12 @@ bool BundleDataMgr::GetRemovableBundleNameVec(std::map& bundle for (auto &it : bundleInfos_) { APP_LOGD("bundleName: %{public}s", it.first.c_str()); int32_t userId = AccountHelper::GetCurrentActiveUserId(); - APP_LOGD("bundle userId is %{public}d, userId= %{public}d", it.second.GetUserId(), userId); + APP_LOGD("bundle userId= %{public}d", userId); if (!it.second.HasInnerBundleUserInfo(userId)) { continue; } if (it.second.IsBundleRemovable(userId)) { - bundlenameAndUids.emplace(it.first, it.second.GetUid(it.second.GetUserId())); + bundlenameAndUids.emplace(it.first, it.second.GetUid(userId)); } } return true;