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

Commit eff34ec9 authored by Al Sutton's avatar Al Sutton Committed by Android (Google) Code Review
Browse files

Merge "Rename variable to avoid mis-labelling as a TODO comment"

parents f6a55e1b 1b8c06fa
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -775,17 +775,17 @@ public class TarBackupReader {

    private static void hexLog(byte[] block) {
        int offset = 0;
        int todo = block.length;
        int remaining = block.length;
        StringBuilder buf = new StringBuilder(64);
        while (todo > 0) {
        while (remaining > 0) {
            buf.append(String.format("%04x   ", offset));
            int numThisLine = (todo > 16) ? 16 : todo;
            int numThisLine = (remaining > 16) ? 16 : remaining;
            for (int i = 0; i < numThisLine; i++) {
                buf.append(String.format("%02x ", block[offset + i]));
            }
            Slog.i("hexdump", buf.toString());
            buf.setLength(0);
            todo -= numThisLine;
            remaining -= numThisLine;
            offset += numThisLine;
        }
    }