Use String8/16 c_str

Bug: 295394788
Test: make checkbuild
Change-Id: I6029b226006c4e82849411adfe539d5c43763e18
This commit is contained in:
Tomasz Wasilczyk 2023-08-11 16:12:17 +00:00
parent d54caf0598
commit fa1b3971fd

View file

@ -62,7 +62,7 @@ static android::sp<android::IBinder> getServiceAggressive() {
static void checkStatus(std::vector<std::string>& cmd, android::binder::Status status) {
if (status.isOk()) return;
std::string command = ::android::base::Join(cmd, " ");
LOG(ERROR) << "Command: " << command << " Failed: " << status.toString8().string();
LOG(ERROR) << "Command: " << command << " Failed: " << status.toString8().c_str();
exit(ENOTTY);
}