Fix benign integer overflow in printHexDump

There is an instance where an unsigned integer is multiplied by -1.
Refactor the code to eliminate this operation.

Bug: 25085348

(cherry picked from commit c2bf8e837ecf36639425fc3015cce078f6a08fb9)

Change-Id: I7efa5c3c2f4ff7bd895c1cc74ec244561dc59bb8
1 file changed