Merge "Fix invalid uses of PLOG." am: 0f90ba64bd am: 0cc793ef16

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2462673

Change-Id: Ibfdbe7c12d29db76e2890d5509320fd5e128dd83
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Krzysztof Kosiński 2023-03-02 01:58:11 +00:00 committed by Automerger Merge Worker
commit eea6ab5f87

View file

@ -815,11 +815,11 @@ bool TaskProfiles::SetProcessProfiles(uid_t uid, pid_t pid, std::span<const T> p
profile->EnableResourceCaching(ProfileAction::RCT_PROCESS);
}
if (!profile->ExecuteForProcess(uid, pid)) {
PLOG(WARNING) << "Failed to apply " << name << " process profile";
LOG(WARNING) << "Failed to apply " << name << " process profile";
success = false;
}
} else {
PLOG(WARNING) << "Failed to find " << name << " process profile";
LOG(WARNING) << "Failed to find " << name << " process profile";
success = false;
}
}
@ -836,11 +836,11 @@ bool TaskProfiles::SetTaskProfiles(int tid, std::span<const T> profiles, bool us
profile->EnableResourceCaching(ProfileAction::RCT_TASK);
}
if (!profile->ExecuteForTask(tid)) {
PLOG(WARNING) << "Failed to apply " << name << " task profile";
LOG(WARNING) << "Failed to apply " << name << " task profile";
success = false;
}
} else {
PLOG(WARNING) << "Failed to find " << name << " task profile";
LOG(WARNING) << "Failed to find " << name << " task profile";
success = false;
}
}