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

Commit cad30d34 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "Fix debug output."

am: d2013b44

Change-Id: I3276299493a7acde38880a27014eadc0e3e3a899
parents 94c0cd93 d2013b44
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -221,7 +221,11 @@ void printHexData(int32_t indent, const void *buf, size_t length,

        for (word = 0; word < bytesPerLine; ) {

            const size_t startIndex = word+(alignment-(alignment?1:0));
            size_t align_offset = alignment-(alignment?1:0);
            if (remain > 0 && (size_t)remain <= align_offset) {
                align_offset = remain - 1;
            }
            const size_t startIndex = word+align_offset;

            for (index = 0; index < alignment || (alignment == 0 && index < bytesPerLine); index++) {