shell: flash: display offsets properly

tags/0.1.0
S.J.R. van Schaik 8 years ago
parent 463cf04f8d
commit 24f7c7b96a
  1. 2
      source/shell/flash.c

@ -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;

Loading…
Cancel
Save