Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c542da26 authored by Daniel Zheng's avatar Daniel Zheng
Browse files

libsnapshot: update write error logs

We want to print how much total data we are attempting to write if a
failure occurs

Bug: 336461151
Test: th
Change-Id: I269b7e280df34994c80fa8ef7d39163d053fa9ea
parent babf5975
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -731,7 +731,8 @@ bool CowWriterV3::WriteOperation(std::span<const CowOperationV3> ops,
            i += chunk;
        }
        if (total_written != total_data_size) {
            PLOG(ERROR) << "write failed for data of size: " << data.size()
            PLOG(ERROR) << "write failed for data vector of size: " << data.size()
                        << " and total data length: " << total_data_size
                        << " at offset: " << next_data_pos_ << " " << errno
                        << ", only wrote: " << total_written;
            return false;