shell: flash: display offsets properly

This commit is contained in:
S.J.R. van Schaik 2017-06-16 17:14:53 +02:00
parent 463cf04f8d
commit 24f7c7b96a

View file

@ -62,7 +62,7 @@ static void print_hex_ascii(uint32_t offset, const char *buf, size_t len)
for (; len; buf += n, len -= n) {
n = min(len, 16);
printf("%04" PRIx32 ": ", offset);
printf("%08" PRIx32 ": ", offset);
for (i = 0; i < 16; ++i) {
c = (i < n) ? buf[i] : 0;