trusty: Fix up error messages
Bug: 171750250 Test: m Change-Id: I41cde13a891da36c85df6a451b2d051c18365797
This commit is contained in:
parent
003bf066b2
commit
ce812a22ca
2 changed files with 3 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ Result<void> CoverageRecord::Open() {
|
|||
req.open_args.uuid = uuid_;
|
||||
auto ret = Rpc(&req, -1, &resp);
|
||||
if (!ret.ok()) {
|
||||
return Error() << "failed to open coverage client: ";
|
||||
return Error() << "failed to open coverage client: " << ret.error();
|
||||
}
|
||||
record_len_ = resp.open_args.record_len;
|
||||
shm_len_ = RoundPageUp(record_len_);
|
||||
|
|
@ -153,7 +153,7 @@ Result<void> CoverageRecord::Open() {
|
|||
req.share_record_args.shm_len = shm_len_;
|
||||
ret = Rpc(&req, dma_buf, &resp);
|
||||
if (!ret.ok()) {
|
||||
return Error() << "failed to send shared memory: ";
|
||||
return Error() << "failed to send shared memory: " << ret.error();
|
||||
}
|
||||
|
||||
shm_ = shm;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ Result<void> TrustyApp::Write(const void* buf, size_t len) {
|
|||
int rc = write(ta_fd_, buf, len);
|
||||
alarm(0);
|
||||
if (rc < 0) {
|
||||
return Error() << "failed to read TIPC message from TA: ";
|
||||
return Error() << "failed to write TIPC message to TA: ";
|
||||
}
|
||||
|
||||
return {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue