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

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

Change-Id: Ie0177ea1595e0509ade79074d0928e3cce5c9470
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:21:45 +00:00 committed by Automerger Merge Worker
commit 0cc793ef16

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;
}
}