cmd-hex: Dump absolute memory address.

Seeing zeros is quite confusing - you never know if you mistypes something
(there's not even a number format error reporting), or something else.
This commit is contained in:
Paul Sokolovsky 2015-04-02 22:10:21 +03:00
parent a02ae82f67
commit 69ad4d5eca

View file

@ -36,7 +36,7 @@ int serial_print_hex_offset(const void *block, int count, int offset)
count += offset;
b -= offset;
for ( ; offset < count; offset += 16) {
serial_puth(offset, 8);
serial_puth((uint32_t)b + offset, 8);
for (byte = 0; byte < 16; byte++) {
if (byte == 8)